mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
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
This commit is contained in:
parent
f60567886a
commit
4fde638b3b
1 changed files with 10 additions and 18 deletions
|
@ -29853,7 +29853,7 @@ instead of pickle.")
|
||||||
(define-public python-toolrack
|
(define-public python-toolrack
|
||||||
(package
|
(package
|
||||||
(name "python-toolrack")
|
(name "python-toolrack")
|
||||||
(version "3.0.1")
|
(version "4.0.1")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
|
@ -29863,30 +29863,22 @@ instead of pickle.")
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"0ych11b7nchnkhqgf7dgivbvn2lzafjsi7nhb1an5zjjyns39gpx"))))
|
"03ard57xc2x0lpnzgrgfb9fqlq1y031ygp8jn2v2fg87i586gjsy"))))
|
||||||
(build-system python-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(list
|
(list
|
||||||
#:phases
|
#:phases
|
||||||
#~(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'patch-/bin/sh
|
(add-after 'unpack 'patch-/bin/sh
|
||||||
(lambda _
|
(lambda _
|
||||||
(substitute* "toolrack/aio/tests/test_process.py"
|
(substitute* "tests/aio/process_test.py"
|
||||||
(("/bin/sh")
|
(("/bin/sh")
|
||||||
(which "sh")))))
|
(which "sh"))))))))
|
||||||
(replace 'check
|
(native-inputs (list python-pytest
|
||||||
(lambda* (#:key tests? #:allow-other-keys)
|
python-pytest-asyncio
|
||||||
(when tests?
|
python-pytest-mock
|
||||||
(invoke "pytest" "-vv" "--pyargs" "toolrack"
|
python-setuptools
|
||||||
"-k"
|
python-wheel))
|
||||||
(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))
|
|
||||||
(home-page "https://github.com/albertodonato/toolrack")
|
(home-page "https://github.com/albertodonato/toolrack")
|
||||||
(synopsis "Collection of Python utility functions and classes")
|
(synopsis "Collection of Python utility functions and classes")
|
||||||
(description "This package provides a collection of miscellaneous utility
|
(description "This package provides a collection of miscellaneous utility
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue