gnu: python-nose2: Update to 0.11.0.
* gnu/packages/check.scm (python-nose2): Update to 0.11.0. [arguments]: Add #:phases. Remove #:tests?. [propagated-inputs]: Remove PYTHON-COV-CORE and PYTHON-PYTEST-COV. [native-inputs]: Add PYTHON-COVERAGE.
parent
acdd0c282f
commit
c3f6049a41
|
@ -892,18 +892,28 @@ available via the @code{unittest.mock} module.")
|
||||||
(define-public python-nose2
|
(define-public python-nose2
|
||||||
(package
|
(package
|
||||||
(name "python-nose2")
|
(name "python-nose2")
|
||||||
(version "0.9.2")
|
(version "0.11.0")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (pypi-uri "nose2" version))
|
(uri (pypi-uri "nose2" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"0pmbb6nk31yhgh4zkcblzxsznml7f7pf5q1ihgrwvbxv4mwzfql7"))))
|
"1scxwvwbgfdj41acma41xzdhcfdwjj9irj6sfifdbyf9dryqs83d"))))
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(arguments `(#:tests? #f)) ; 'module' object has no attribute 'collector'
|
(arguments
|
||||||
|
(list #:phases
|
||||||
|
#~(modify-phases %standard-phases
|
||||||
|
(replace 'check
|
||||||
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
|
(when tests?
|
||||||
|
;; Tests require nose2 itself.
|
||||||
|
(setenv "PYTHONPATH" (getcwd))
|
||||||
|
(invoke (string-append #$output "/bin/nose2") "-v")))))))
|
||||||
|
(native-inputs
|
||||||
|
(list python-coverage))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list python-cov-core python-pytest-cov python-six))
|
(list python-six))
|
||||||
(home-page "https://github.com/nose-devs/nose2")
|
(home-page "https://github.com/nose-devs/nose2")
|
||||||
(synopsis "Next generation of nicer testing for Python")
|
(synopsis "Next generation of nicer testing for Python")
|
||||||
(description
|
(description
|
||||||
|
|
Reference in New Issue