[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/03: gnu: python-shellingham: Run test suite.
From: |
guix-commits |
Subject: |
03/03: gnu: python-shellingham: Run test suite. |
Date: |
Sat, 22 Apr 2023 17:26:36 -0400 (EDT) |
efraim pushed a commit to branch core-updates
in repository guix.
commit f838fe676b9b45eba0e4298abd720314d9a01b1b
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Sun Apr 23 00:25:14 2023 +0300
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