~ruther/guix-local

4fde638b3b801dce26bd2e3bfc4e92e68ca8c173 — Ricardo Wurmus 1 year, 4 months ago f605678
gnu: python-toolrack: Update to 4.0.1.

* gnu/packages/python-xyz.scm (python-toolrack): Update to 4.0.1.
[build-system]: Use pyproject-build-system.
[arguments]: Adjust phase 'patch-/bin/sh; remove custom 'check phase.
[native-inputs]: Add python-setuptools and python-wheel.

Change-Id: I3de26b028d5eeb23a534ae2dc17e8084249d19e1
1 files changed, 10 insertions(+), 18 deletions(-)

M gnu/packages/python-xyz.scm
M gnu/packages/python-xyz.scm => gnu/packages/python-xyz.scm +10 -18
@@ 29853,7 29853,7 @@ instead of pickle.")
(define-public python-toolrack
  (package
    (name "python-toolrack")
    (version "3.0.1")
    (version "4.0.1")
    (source
     (origin
       (method git-fetch)


@@ 29863,30 29863,22 @@ instead of pickle.")
       (file-name (git-file-name name version))
       (sha256
        (base32
         "0ych11b7nchnkhqgf7dgivbvn2lzafjsi7nhb1an5zjjyns39gpx"))))
    (build-system python-build-system)
         "03ard57xc2x0lpnzgrgfb9fqlq1y031ygp8jn2v2fg87i586gjsy"))))
    (build-system pyproject-build-system)
    (arguments
     (list
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'patch-/bin/sh
            (lambda _
              (substitute* "toolrack/aio/tests/test_process.py"
              (substitute* "tests/aio/process_test.py"
                (("/bin/sh")
                 (which "sh")))))
          (replace 'check
            (lambda* (#:key tests? #:allow-other-keys)
              (when tests?
                (invoke "pytest" "-vv" "--pyargs" "toolrack"
                        "-k"
                        (string-append
                         ;; These tests fail for unknown reason comparing the
                         ;; expected output of shell scripts.
                         "not test_parse_stderr "
                         "and not test_parse_no_ending_newline "
                         "and not test_parse_stdout"))))))))
    (native-inputs (list python-pytest python-pytest-asyncio
                         python-pytest-mock))
                 (which "sh"))))))))
    (native-inputs (list python-pytest
                         python-pytest-asyncio
                         python-pytest-mock
                         python-setuptools
                         python-wheel))
    (home-page "https://github.com/albertodonato/toolrack")
    (synopsis "Collection of Python utility functions and classes")
    (description "This package provides a collection of miscellaneous utility