diff options
author | Nicolas Graves <ngraves@ngraves.fr> | 2025-04-06 14:37:05 +0200 |
---|---|---|
committer | Andreas Enge <andreas@enge.fr> | 2025-04-16 11:46:30 +0200 |
commit | 0a369a73cbfbba9e049c1468ed8ae06581d12985 (patch) | |
tree | 8178008a364f2d1a599a72cf8fbd58fce700bede | |
parent | 27858d9affb7cb95fe05feabb67c5bc86243ef82 (diff) | |
download | guix-0a369a73cbfbba9e049c1468ed8ae06581d12985.tar.gz guix-0a369a73cbfbba9e049c1468ed8ae06581d12985.zip |
gnu: python-lazr-delegates: Update to 2.1.1.
* gnu/packages/python-xyz.scm (python-lazr-delegates): Update to 2.1.1.
[build-system]: Switch to pyproject.
[arguments]{test-flags}: Run tests in output.
{phases}: Add a 'check-cleanup phase to remove tests from output.
[native-inputs]: Remove python-nose. Add python-pytest,
python-setuptools, python-wheel.
Change-Id: Ic60d9a53af627c360d6829df27ec83c4b58e5638
Signed-off-by: Steve George <steve@futurile.net>
-rw-r--r-- | gnu/packages/python-xyz.scm | 30 |
1 files changed, 19 insertions, 11 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 74d657cd59..8474ce8be9 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -34660,23 +34660,31 @@ reStructuredText, and plain text.") (define-public python-lazr-delegates (package (name "python-lazr-delegates") - (version "2.0.4") + (version "2.1.1") (source (origin (method url-fetch) - (uri (pypi-uri "lazr.delegates" version)) + (uri (pypi-uri "lazr_delegates" version)) (sha256 - (base32 - "1rdnl85j9ayp8n85l0ciip621j9dcziz5qnmv2m7krgwgcn31vfx")))) - (build-system python-build-system) + (base32 "1p02diwzn58jhpvf9m8bhb5p0xkx5gnc84mzgwr3zdsidrhv5kmf")))) + (build-system pyproject-build-system) (arguments - '(#:phases - (modify-phases %standard-phases - (replace 'check - (lambda* (#:key tests? #:allow-other-keys) - (when tests? (invoke "nosetests"))))))) + (list + #:test-flags #~(list "-v" #$output) + #:phases + #~(modify-phases %standard-phases + (add-after 'check 'check-cleanup + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (for-each + delete-file-recursively + (find-files #$output + (lambda (file stat) + (or (member (basename file) + '("tests" ".pytest_cache")))) + #:directories? #t)))))))) (native-inputs - (list python-nose)) + (list python-pytest python-setuptools python-wheel)) (propagated-inputs (list python-zope-interface)) (home-page "https://launchpad.net/lazr.delegates") |