diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-09-21 23:45:03 +0200 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-09-25 09:36:54 +0100 |
| commit | a69386e4daf86b9039fb91be1da56c39718bcd44 (patch) | |
| tree | 50b7259de0dd9b65f32f6db33a425a1882c044ee | |
| parent | ad416124e2501b2f514f7868422a23cd5060f9df (diff) | |
gnu: python-requestsexceptions: Disable tests.
* gnu/packages/openstack.scm (python-requestsexceptions):
[source]: Switch to git-fetch.
[arguments]<#:tests?>: Disable them.
<#:phases>: Add phase 'set-version.
[native-inputs]: Add python-os-testr. Remove python-wheel.
[synopsis, description]: Improve style.
Change-Id: I9ee0105c2cd7153ecef8dfc38a9ca255a97366ed
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
| -rw-r--r-- | gnu/packages/openstack.scm | 36 |
1 files changed, 23 insertions, 13 deletions
diff --git a/gnu/packages/openstack.scm b/gnu/packages/openstack.scm index b498766067..f701e4663e 100644 --- a/gnu/packages/openstack.scm +++ b/gnu/packages/openstack.scm @@ -1153,29 +1153,39 @@ Gerrit for review, or fetching existing ones.") (version "1.4.0") (source (origin - (method url-fetch) - (uri (pypi-uri "requestsexceptions" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/openstack/requestsexceptions") + (commit version))) + (file-name (git-file-name name version)) (sha256 - (base32 "0r9hp9yzgj8r81q5gc6r8sgxldqc09xi6ax0b7a6dw0qfv3wp5dh")))) + (base32 "12c4bi2vm337sgbbl08i01v794glnk1fzgxdc11545dqdl57rslz")))) (build-system pyproject-build-system) (arguments (list + ;; XXX: There are some tests in tox.ini, but it leads nowhere. + #:tests? #f #:phases #~(modify-phases %standard-phases (add-after 'unpack 'relax-requirements (lambda _ (substitute* "test-requirements.txt" (("hacking.*") - ""))))))) - (native-inputs (list python-pbr python-setuptools python-wheel)) - (home-page "https://www.openstack.org/") - (synopsis "Import exceptions from potentially bundled packages in requests") - (description "The Python requests library bundles the urllib3 library, -however, some software distributions modify requests to remove the bundled -library. This makes some operations difficult, such as suppressing the -“insecure platform warning” messages that urllib emits. This package is a -simple library to find the correct path to exceptions in the requests library -regardless of whether they are bundled or not.") + "")))) + (add-after 'unpack 'set-version + (lambda _ + (setenv "PBR_VERSION" #$version)))))) + (native-inputs (list python-os-testr python-pbr python-setuptools)) + (home-page "https://github.com/openstack/requestsexceptions") + (synopsis + "Import exceptions from potentially bundled packages in requests") + (description + "The Python requests library bundles the urllib3 library, however, some +software distributions modify requests to remove the bundled library. This +makes some operations difficult, such as suppressing the “insecure platform +warning” messages that urllib emits. This package is a simple library to find +the correct path to exceptions in the requests library regardless of whether +they are bundled or not.") (license license:asl2.0))) (define-public python-openstacksdk |
