gnu: python-pyhamcrest: Use 'git-fetch'.

* gnu/packages/check.scm (python-pyhamcrest)[source]: Use 'git-fetch'.
This commit is contained in:
Efraim Flashner 2018-12-20 22:31:12 +02:00
parent 52305b0ab3
commit 0afd0660c2
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351
1 changed files with 7 additions and 9 deletions

View File

@ -2066,17 +2066,15 @@ retried.")
(name "python-pyhamcrest") (name "python-pyhamcrest")
(version "1.9.0") (version "1.9.0")
(source (origin (source (origin
(method url-fetch) ;; Tests not distributed from pypi release.
(uri (method git-fetch)
(string-append (uri (git-reference
"https://github.com/hamcrest/PyHamcrest/archive/V" (url "https://github.com/hamcrest/PyHamcrest")
version (commit (string-append "V" version))))
".tar.gz")) (file-name (git-file-name name version))
(file-name
(string-append name "-" version ".tar.gz"))
(sha256 (sha256
(base32 (base32
"1lqjajhwf7x7igvvnj5p1cm31y9njy07qby94w18kl6zwbdjqrwy")))) "01qnzj9qnzz0y78qa3ing24ssvszb0adw59xc4qqmdn5wryy606b"))))
(native-inputs ; All native inputs are for tests (native-inputs ; All native inputs are for tests
`(("python-pytest-cov" ,python-pytest-cov) `(("python-pytest-cov" ,python-pytest-cov)
("python-mock" ,python-mock) ("python-mock" ,python-mock)