gnu: python-shellingham: Run test suite.

* gnu/packages/python-xyz.scm (python-shellingham)[arguments]: Add
custom 'check phase.
[native-inputs]: Add python-pytest, python-pytest-mock.
This commit is contained in:
Efraim Flashner 2023-04-23 00:25:14 +03:00
parent 5a8fa27fe4
commit f838fe676b
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -17723,6 +17723,15 @@ (define-public python-shellingham
(sha256
(base32 "0iawv24xx6vhwbhqlxyyg901f8pf6abqyfg0711v1bvlipx83g21"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "python" "-m" "pytest" "-v")))))))
(native-inputs
(list python-pytest python-pytest-mock))
(home-page "https://github.com/sarugaku/shellingham")
(synopsis "Tool to detect surrounding shell")
(description