mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-sh: Update to 2.2.2.
* gnu/packages/python-xyz.scm (python-sh): Update to 2.2.2. [build-system]: Use pyproject. [arguments] <test-flags>: Skip some shaky tests. <phases>: Add 'pre-check and use default 'check. [native-inputs]: Remove python-coverage; add python-poetry-core and python-pytest. Change-Id: Ibf59528a75ea21a3312b8afa3eece2ef5273de69
This commit is contained in:
parent
0dd0f458e0
commit
b592aa7199
1 changed files with 20 additions and 11 deletions
|
@ -4486,25 +4486,34 @@ Unicode-to-LaTeX conversion.")
|
||||||
(define-public python-sh
|
(define-public python-sh
|
||||||
(package
|
(package
|
||||||
(name "python-sh")
|
(name "python-sh")
|
||||||
(version "1.14.2")
|
(version "2.2.2")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (pypi-uri "sh" version))
|
(uri (pypi-uri "sh" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"03gyss1rhj4in7pgysg4q0hxp3230whinlpy1532ljs99lrx0ywx"))))
|
"0nxnkvmrl6vlan6lsvjymmxpr0gf8k0gnwr1632lwa0sqjkjfck5"))))
|
||||||
(build-system python-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:phases
|
(list
|
||||||
(modify-phases %standard-phases
|
#:test-flags
|
||||||
(replace 'check
|
#~(list "-k" (string-join
|
||||||
(lambda _
|
;; These tests are shaky.
|
||||||
;; XXX: A Python 2 test fails when HOME=/homeless-shelter.
|
(list "not test_bad_sig_raise_exception"
|
||||||
(setenv "HOME" "/tmp")
|
"test_doesnt_execute_directories"
|
||||||
(invoke "python" "sh.py" "test"))))))
|
"test_environment"
|
||||||
|
"test_ok_code_ignores_bad_sig_exception"
|
||||||
|
"test_unicode_path")
|
||||||
|
" and not ")
|
||||||
|
"tests")
|
||||||
|
#:phases
|
||||||
|
#~(modify-phases %standard-phases
|
||||||
|
(add-before 'check 'pre-check
|
||||||
|
(lambda _
|
||||||
|
(setenv "HOME" "/tmp"))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list python-coverage))
|
(list python-poetry-core python-pytest))
|
||||||
(home-page "https://github.com/amoffat/sh")
|
(home-page "https://github.com/amoffat/sh")
|
||||||
(synopsis "Python subprocess replacement")
|
(synopsis "Python subprocess replacement")
|
||||||
(description "This package provides a replacement for Python's
|
(description "This package provides a replacement for Python's
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue