gnu: pythonbitstring: Run tests.

* gnu/packages/python-xyx.scm (python-bitstring)[arguments]: Replace
check phase.
[native-inputs]: Add python-pytesst.
This commit is contained in:
Efraim Flashner 2020-12-28 12:19:14 +02:00
parent 9779d08982
commit 3742c7f6dc
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -23324,6 +23324,18 @@ (define-public python-bitstring
(base32
"0jl6192dwrlm5ybkbh7ywmyaymrc3cmz9y07nm7qdli9n9rfpwzx"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? inputs outputs #:allow-other-keys)
(when tests?
(add-installed-pythonpath inputs outputs)
(with-directory-excursion "test"
(invoke "pytest")))
#t)))))
(native-inputs
`(("python-pytest" ,python-pytest)))
(home-page "https://github.com/scott-griffiths/bitstring")
(synopsis
"Simple construction, analysis and modification of binary data")