From f838fe676b9b45eba0e4298abd720314d9a01b1b Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 23 Apr 2023 00:25:14 +0300 Subject: [PATCH] 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. --- gnu/packages/python-xyz.scm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 7eea5d78cc..c623ce3135 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -17723,6 +17723,15 @@ implementation has been adapted, improved, and fixed from Molten.") (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