summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-12-27 22:35:35 +0000
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-12-28 12:06:20 +0000
commite4e3eb54d0f0e52e542831272b38a6d6710420e4 (patch)
tree44382aaf356e4bbf0aa8a9dcd5ac088d4895f9f5 /gnu
parent7eaf4eae4351594e66810acf77b6c14d9f01ac19 (diff)
gnu: python-http-client: Switch to pyproject, improve package.
* gnu/packages/python-web.scm (python-http-client): [build-system]: Switch to pyproejct-build-system. [arguments] <test-backend>: Use unittest. [native-inputs]: Add python-setuptools. Change-Id: I74539b677886045419084f596390a91fd068f2a1
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/python-web.scm43
1 files changed, 22 insertions, 21 deletions
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index cfbb3c12ce3..a960b17c16d 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -12750,28 +12750,29 @@ possible, supporting most common functionality.")
(package
(name "python-http-client")
(version "3.3.7")
- (home-page "https://github.com/sendgrid/python-http-client")
- (source (origin
- (method git-fetch)
- (uri (git-reference
- (url home-page)
- (commit version)))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "0z0ziw3f4zw5fj4spiwhhs2x8qs3i5999ry2p6a5sc8b1lkkj2zi"))
- (snippet #~(begin
- (use-modules (guix build utils))
- (delete-file "tests/profile.py")))))
- (build-system python-build-system)
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/sendgrid/python-http-client")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0z0ziw3f4zw5fj4spiwhhs2x8qs3i5999ry2p6a5sc8b1lkkj2zi"))))
+ (build-system pyproject-build-system)
(arguments
- (list #:phases
- #~(modify-phases %standard-phases
- (add-after 'unpack 'fix-tests
- (lambda _
- ;; The test expects the copyright to be updated each year.
- (substitute* "tests/test_daterange.py"
- (("time\\.strftime\\(\"%Y\"\\)") "2022")))))))
+ (list
+ #:test-backend #~'unittest
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'fix-tests
+ (lambda _
+ ;; The test expects the copyright to be updated each year.
+ (substitute* "tests/test_daterange.py"
+ (("time\\.strftime\\(\"%Y\"\\)") "2022")))))))
+ (native-inputs
+ (list python-setuptools))
+ (home-page "https://github.com/sendgrid/python-http-client")
(synopsis "HTTP REST client for Python")
(description
"This package provides access to any RESTful or RESTful-like API.")