gnu: python-screed: Update to 1.0.
* gnu/packages/bioinformatics.scm (python-screed): Update to 1.0. [arguments]: Run tests after installation. [native-inputs]: Add python-pytest, python-pytest-cov, and python-pytest-runner; remove python-nose.
This commit is contained in:
parent
0db75f7a79
commit
50e33c3a8c
|
@ -5602,25 +5602,38 @@ complexity samples.")
|
||||||
(define-public python-screed
|
(define-public python-screed
|
||||||
(package
|
(package
|
||||||
(name "python-screed")
|
(name "python-screed")
|
||||||
(version "0.9")
|
(version "1.0")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (pypi-uri "screed" version))
|
(uri (pypi-uri "screed" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"18czszp9fkx3j6jr7y5kp6dfialscgddk05mw1zkhh2zhn0jd8i0"))))
|
"148vcb7w2wr6a4w6vs2bsxanbqibxfk490zbcbg4m61s8669zdjx"))))
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
'(#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(replace 'check
|
;; Tests must be run after installation, as the "screed" command does
|
||||||
(lambda _
|
;; not exist right after building.
|
||||||
(setenv "PYTHONPATH"
|
(delete 'check)
|
||||||
(string-append (getenv "PYTHONPATH") ":."))
|
(add-after 'install 'check
|
||||||
(zero? (system* "nosetests" "--attr" "!known_failing")))))))
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
|
(let ((out (assoc-ref outputs "out")))
|
||||||
|
(setenv "PYTHONPATH"
|
||||||
|
(string-append out "/lib/python"
|
||||||
|
(string-take (string-take-right
|
||||||
|
(assoc-ref inputs "python")
|
||||||
|
5) 3)
|
||||||
|
"/site-packages:"
|
||||||
|
(getenv "PYTHONPATH")))
|
||||||
|
(setenv "PATH" (string-append out "/bin:" (getenv "PATH"))))
|
||||||
|
(invoke "python" "setup.py" "test")
|
||||||
|
#t)))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("python-nose" ,python-nose)))
|
`(("python-pytest" ,python-pytest)
|
||||||
|
("python-pytest-cov" ,python-pytest-cov)
|
||||||
|
("python-pytest-runner" ,python-pytest-runner)))
|
||||||
(inputs
|
(inputs
|
||||||
`(("python-bz2file" ,python-bz2file)))
|
`(("python-bz2file" ,python-bz2file)))
|
||||||
(home-page "https://github.com/dib-lab/screed/")
|
(home-page "https://github.com/dib-lab/screed/")
|
||||||
|
|
Loading…
Reference in New Issue