summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-07-24 04:28:43 +0200
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-07-27 00:25:54 +0100
commit6901133f4b671900c4974c45e840eaecf592c4a4 (patch)
tree1477f265cba5c31363afd4425973e70661dda96e
parentff5484a774302750aa7e9e30e0fb5d13c1eddfd2 (diff)
gnu: python-requestsexceptions: Switch to pyproject.
* gnu/packages/openstack.scm (python-requestsexceptions): [build-system]: Switch to pyproject-build-system. [arguments]<#:tests?>: Enable them. <#:phases>: Add 'relax-requirements phase. [native-inputs]: Add python-pbr, python-setuptools, python-wheel. Change-Id: I65418e50cfd9263257adb95fb83ea0662bf15803 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
-rw-r--r--gnu/packages/openstack.scm25
1 files changed, 16 insertions, 9 deletions
diff --git a/gnu/packages/openstack.scm b/gnu/packages/openstack.scm
index 968c102b80..8114906623 100644
--- a/gnu/packages/openstack.scm
+++ b/gnu/packages/openstack.scm
@@ -1215,16 +1215,23 @@ Gerrit for review, or fetching existing ones.")
(package
(name "python-requestsexceptions")
(version "1.4.0")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "requestsexceptions" version))
- (sha256
- (base32
- "0r9hp9yzgj8r81q5gc6r8sgxldqc09xi6ax0b7a6dw0qfv3wp5dh"))))
- (build-system python-build-system)
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "requestsexceptions" version))
+ (sha256
+ (base32 "0r9hp9yzgj8r81q5gc6r8sgxldqc09xi6ax0b7a6dw0qfv3wp5dh"))))
+ (build-system pyproject-build-system)
(arguments
- '(#:tests? #f)) ; no tests
- (native-inputs (list python-pbr))
+ (list
+ #: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,