summaryrefslogtreecommitdiff
path: root/gnu/packages/python-xyz.scm
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-08-13 10:51:09 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-08-13 12:48:56 +0100
commit17a4776113a2d67d16f2d9d74db1f6deece51c2e (patch)
tree5e40150e9413db403ff1443b0b88f5ad520e8490 /gnu/packages/python-xyz.scm
parent3a07c9ef03731158506e746d4b2c0c970a7ed315 (diff)
gnu: python-pox: Update to 0.3.6.
* gnu/packages/python-xyz.scm (python-pox): Update to 0.3.6. Use G-Expressions. [build-system]: Use pyproject. [phases]{check}: Respect <tests?>, remove trailing #t from lambda and run custom checks. [native-inputs]: Remove python-pytest; add python-setuptools-next. Change-Id: I1c888e8704426b7f08f4972ae66280081383896a
Diffstat (limited to 'gnu/packages/python-xyz.scm')
-rw-r--r--gnu/packages/python-xyz.scm30
1 files changed, 16 insertions, 14 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 60f49ee5ac..f877728535 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -32163,28 +32163,30 @@ load balancing.")
(define-public python-pox
(package
(name "python-pox")
- (version "0.2.7")
+ (version "0.3.6")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pox" version))
(sha256
(base32
- "0y17ckc2p6i6709s279sjdj4q459mpcc38ymg9zv9y6vl6jf3bq6"))))
- (build-system python-build-system)
+ "01gnsgz6wfmpmb57qr4cgpkampiy6l7c1kxa0hlacn81c0wyvvl4"))))
+ (build-system pyproject-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (replace 'check
- (lambda _
- (mkdir-p "/tmp/guix")
- (setenv "SHELL" "bash")
- (setenv "USERNAME" "guix")
- (setenv "HOME" "/tmp/guix") ; must end on USERNAME...
- (invoke "py.test" "-vv")
- #t)))))
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? inputs outputs #:allow-other-keys)
+ (when tests?
+ (mkdir-p "/tmp/guix")
+ (setenv "SHELL" "bash")
+ (setenv "USERNAME" "guix")
+ (setenv "HOME" "/tmp/guix") ; must end on USERNAME...
+ (invoke "python" "./pox/tests/__main__.py")))))))
(native-inputs
- (list python-pytest which))
+ (list python-setuptools-next
+ which)) ;pox/tests/test_shutils.py
(home-page "https://pypi.org/project/pox/")
(synopsis "Python utilities for file system exploration and automated builds")
(description