~ruther/guix-local

17a4776113a2d67d16f2d9d74db1f6deece51c2e — Sharlatan Hellseher 9 months ago 3a07c9e
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
1 files changed, 17 insertions(+), 15 deletions(-)

M gnu/packages/python-xyz.scm
M gnu/packages/python-xyz.scm => gnu/packages/python-xyz.scm +17 -15
@@ 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)))))
    (native-inputs
     (list python-pytest which))
     (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-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