diff options
author | Nicolas Graves via Guix-patches via <guix-patches@gnu.org> | 2025-04-06 14:37:06 +0200 |
---|---|---|
committer | Andreas Enge <andreas@enge.fr> | 2025-04-16 11:46:30 +0200 |
commit | e4cdcbbcbbaa9e0252e04f553755a76e94c963eb (patch) | |
tree | f21e9ea5b57e8bd7431e81bc18b9f053249356f4 | |
parent | 0a369a73cbfbba9e049c1468ed8ae06581d12985 (diff) | |
download | guix-e4cdcbbcbbaa9e0252e04f553755a76e94c963eb.tar.gz guix-e4cdcbbcbbaa9e0252e04f553755a76e94c963eb.zip |
gnu: python-lazr-config: Update to 3.1.
* gnu/packages/python-xyz.scm (python-lazr-config): Update to 3.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.
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 8474ce8be9..15cfc1c235 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -34699,23 +34699,31 @@ and delegating behavior.") (define-public python-lazr-config (package (name "python-lazr-config") - (version "2.2.3") + (version "3.1") (source (origin (method url-fetch) - (uri (pypi-uri "lazr.config" version)) + (uri (pypi-uri "lazr_config" version)) (sha256 - (base32 - "1qdbrzl61q7cjhbnxvw9y3frcr935y7diwy15xrwcv9ynvw76jmp")))) - (build-system python-build-system) + (base32 "02xb4fs9rm6bf3f00qkq8pihgqvrvn2wfnvydn2vg9p73ddhcmvw")))) + (build-system pyproject-build-system) (arguments - '(#:phases - (modify-phases %standard-phases - (replace 'check - (lambda _ - (invoke "python" "-s" "-m" "nose" "-P" "lazr")))))) + (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-lazr-delegates python-zope-interface)) (home-page "https://launchpad.net/lazr.config") |