summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-07-31 15:46:34 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-07-31 17:06:57 +0100
commita21904c2b0a5f86c3dcd3cb470942e8b5cc1c81d (patch)
tree019947a852b011cffcae9856e6646726b4d9524c
parent2e9cb4029b4e7e3ed0a56c17e7e8394a3fda57cf (diff)
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
-rw-r--r--gnu/packages/python-xyz.scm31
1 files changed, 20 insertions, 11 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index f5dd0d24b4..4de93a939c 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -4312,25 +4312,34 @@ Unicode-to-LaTeX conversion.")
(define-public python-sh
(package
(name "python-sh")
- (version "1.14.2")
+ (version "2.2.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "sh" version))
(sha256
(base32
- "03gyss1rhj4in7pgysg4q0hxp3230whinlpy1532ljs99lrx0ywx"))))
- (build-system python-build-system)
+ "0nxnkvmrl6vlan6lsvjymmxpr0gf8k0gnwr1632lwa0sqjkjfck5"))))
+ (build-system pyproject-build-system)
(arguments
- '(#:phases
- (modify-phases %standard-phases
- (replace 'check
- (lambda _
- ;; XXX: A Python 2 test fails when HOME=/homeless-shelter.
- (setenv "HOME" "/tmp")
- (invoke "python" "sh.py" "test"))))))
+ (list
+ #:test-flags
+ #~(list "-k" (string-join
+ ;; These tests are shaky.
+ (list "not test_bad_sig_raise_exception"
+ "test_doesnt_execute_directories"
+ "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
- (list python-coverage))
+ (list python-poetry-core python-pytest))
(home-page "https://github.com/amoffat/sh")
(synopsis "Python subprocess replacement")
(description "This package provides a replacement for Python's