gnu: python-hamcrest: Update to 1.9.0-0.25fdc5f.
* gnu/packages/check.scm (python-pyhamcrest): Update to 1.9.0-0.25fdc5f. [arguments]: Replace CHECK phase with custom Pytest invokation.
This commit is contained in:
parent
794ce8eaf7
commit
d08482f03f
1 changed files with 38 additions and 26 deletions
|
|
@ -2124,33 +2124,45 @@ retried.")
|
||||||
(package-with-python2 python-flaky))
|
(package-with-python2 python-flaky))
|
||||||
|
|
||||||
(define-public python-pyhamcrest
|
(define-public python-pyhamcrest
|
||||||
(package
|
;; The latest release was in 2016 and its test suite does not work with recent
|
||||||
(name "python-pyhamcrest")
|
;; versions of Pytest. Just take the master branch for now, which seems stable.
|
||||||
(version "1.9.0")
|
(let ((commit "25fdc5f00bdf3084335353bc9247253098ec4cf2")
|
||||||
(source (origin
|
(revision "0"))
|
||||||
;; Tests not distributed from pypi release.
|
(package
|
||||||
(method git-fetch)
|
(name "python-pyhamcrest")
|
||||||
(uri (git-reference
|
(version (git-version "1.9.0" revision commit))
|
||||||
(url "https://github.com/hamcrest/PyHamcrest")
|
(source (origin
|
||||||
(commit (string-append "V" version))))
|
;; Tests not distributed from pypi release.
|
||||||
(file-name (git-file-name name version))
|
(method git-fetch)
|
||||||
(sha256
|
(uri (git-reference
|
||||||
(base32
|
(url "https://github.com/hamcrest/PyHamcrest")
|
||||||
"01qnzj9qnzz0y78qa3ing24ssvszb0adw59xc4qqmdn5wryy606b"))))
|
(commit commit)))
|
||||||
(native-inputs ; All native inputs are for tests
|
(file-name (git-file-name name version))
|
||||||
`(("python-pytest-cov" ,python-pytest-cov)
|
(sha256
|
||||||
("python-mock" ,python-mock)
|
(base32
|
||||||
("python-pytest" ,python-pytest)
|
"1miqmhhi68vaix8sqc1lvpvbm27bacffxh5anm5cbfsvk7g9n6f3"))))
|
||||||
("python-hypothesis" ,python-hypothesis)))
|
(native-inputs ;all native inputs are for tests
|
||||||
(propagated-inputs
|
`(("python-pytest-cov" ,python-pytest-cov)
|
||||||
`(("python-six" ,python-six)))
|
("python-mock" ,python-mock)
|
||||||
(build-system python-build-system)
|
("python-pytest" ,python-pytest)
|
||||||
(home-page "http://hamcrest.org/")
|
("python-hypothesis" ,python-hypothesis)))
|
||||||
(synopsis "Hamcrest matchers for Python")
|
(propagated-inputs
|
||||||
(description
|
`(("python-six" ,python-six)))
|
||||||
"PyHamcrest is a framework for writing matcher objects,
|
(build-system python-build-system)
|
||||||
|
(arguments
|
||||||
|
`(#:phases (modify-phases %standard-phases
|
||||||
|
(replace 'check
|
||||||
|
(lambda _
|
||||||
|
(setenv "PYTHONPATH"
|
||||||
|
(string-append "build/lib:"
|
||||||
|
(getenv "PYTHONPATH")))
|
||||||
|
(invoke "pytest" "-vv"))))))
|
||||||
|
(home-page "http://hamcrest.org/")
|
||||||
|
(synopsis "Hamcrest matchers for Python")
|
||||||
|
(description
|
||||||
|
"PyHamcrest is a framework for writing matcher objects,
|
||||||
allowing you to declaratively define \"match\" rules.")
|
allowing you to declaratively define \"match\" rules.")
|
||||||
(license license:bsd-3)))
|
(license license:bsd-3))))
|
||||||
|
|
||||||
(define-public python2-pyhamcrest
|
(define-public python2-pyhamcrest
|
||||||
(package-with-python2 python-pyhamcrest))
|
(package-with-python2 python-pyhamcrest))
|
||||||
|
|
|
||||||
Reference in a new issue