diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-10-18 17:59:48 +0200 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-10-18 23:37:58 +0100 |
| commit | 690f7fd91efe9124a8018f034a124505d9e5f037 (patch) | |
| tree | 46634b34c2ab3aff8a3b2deb58c57412e7ede1b5 | |
| parent | a60f1b1a9d1a86d3a2de8e06c11bbbfc2e6b85f6 (diff) | |
gnu: python-pysendfile: Switch to pyproject.
* gnu/packages/python-xyz.scm (python-pysendfile):
[source]: Switch to git-fetch.
[build-system]: Switch to pyproject-build-system.
[arguments]: Improve style.
[native-inputs]: Add python-setuptools.
Change-Id: Ie759346fb3dcaa2cbfe7db46b79de42b8c037b9e
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
| -rw-r--r-- | gnu/packages/python-xyz.scm | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index a87c888cd56..5263a9644de 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -17143,19 +17143,24 @@ functionality and customization to your projects with their own plugins.") (version "2.0.1") (source (origin - (method url-fetch) - (uri (pypi-uri "pysendfile" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/giampaolo/pysendfile") + (commit (string-append "release-" version)))) + (file-name (git-file-name name version)) (sha256 - (base32 "05qf0m32isflln1zjgxlpw0wf469lj86vdwwqyizp1h94x5l22ji")))) - (build-system python-build-system) + (base32 "1d2pcqad57l5ilc2icabybzzjgsg46djklhvyf17fgbkb0x3yc7c")))) + (build-system pyproject-build-system) (arguments (list - #:phases #~(modify-phases %standard-phases - (replace 'check - (lambda* (#:key tests? #:allow-other-keys) - (when tests? - (setenv "HOME" "/tmp") - (invoke "make" "test"))))))) + #:phases + #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (setenv "HOME" "/tmp") + (invoke "make" "test"))))))) + (native-inputs (list python-pytest python-setuptools)) (home-page "https://github.com/giampaolo/pysendfile") (synopsis "Python interface to sendfile(2)") (description "The @code{pysendfile} Python library provides an interface to |
