[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/04: gnu: python-dotenv: Run test suite.
From: |
guix-commits |
Subject: |
02/04: gnu: python-dotenv: Run test suite. |
Date: |
Wed, 1 Dec 2021 06:59:26 -0500 (EST) |
efraim pushed a commit to branch master
in repository guix.
commit 1e8ad167f6b35da7faffa5b29079d627ac159165
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Wed Dec 1 13:16:26 2021 +0200
gnu: python-dotenv: Run test suite.
* gnu/packages/python-xyz.scm (python-dotenv)[arguments]: Add custom
'check phase.
---
gnu/packages/python-xyz.scm | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index bbe5aed..186749b 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -27636,6 +27636,18 @@ systems in Python.")
(sha256
(base32 "0pv5ygpr6syc6zkw21in4ysqs3k7qaxk9m1g5pzlafwm3silkpm5"))))
(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)
+ (setenv "PATH" (string-append (getenv "PATH") ":"
+ (assoc-ref outputs "out") "/bin"))
+ ;; Skip the ipython tests.
+ (delete-file "tests/test_ipython.py")
+ (invoke "python" "-m" "pytest")))))))
(propagated-inputs
`(("python-click" ,python-click)))
(native-inputs