gnu: python2-subprocess32: Skip the tests.
* gnu/packages/python.scm (python2-subprocess32)[arguments]: Skip the tests.
This commit is contained in:
parent
4d6ed794dd
commit
20c295f9f3
|
@ -7166,6 +7166,10 @@ Python at your fingertips, in Lisp form.")
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:python ,python-2
|
`(#:python ,python-2
|
||||||
|
;; The test suite fails with Python > 2.7.13:
|
||||||
|
;; import test.support
|
||||||
|
;; ImportError: No module named support
|
||||||
|
#:tests? #f
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'patch-/bin/sh
|
(add-after 'unpack 'patch-/bin/sh
|
||||||
|
@ -7173,15 +7177,7 @@ Python at your fingertips, in Lisp form.")
|
||||||
(substitute* '("subprocess32.py"
|
(substitute* '("subprocess32.py"
|
||||||
"test_subprocess32.py")
|
"test_subprocess32.py")
|
||||||
(("/bin/sh") (which "sh")))
|
(("/bin/sh") (which "sh")))
|
||||||
#t))
|
#t)))))
|
||||||
(delete 'check)
|
|
||||||
(add-after 'install 'check
|
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
||||||
;; For some reason this package fails to import
|
|
||||||
;; _posixsubprocess.so when PYTHONPATH is set to the build
|
|
||||||
;; directory. Running tests after install is easier.
|
|
||||||
(add-installed-pythonpath inputs outputs)
|
|
||||||
(zero? (system* "python" "test_subprocess32.py")))))))
|
|
||||||
(home-page "https://github.com/google/python-subprocess32")
|
(home-page "https://github.com/google/python-subprocess32")
|
||||||
(synopsis "Backport of the subprocess module from Python 3.2")
|
(synopsis "Backport of the subprocess module from Python 3.2")
|
||||||
(description
|
(description
|
||||||
|
|
Loading…
Reference in New Issue