summary refs log tree commit diff
path: root/gnu/packages/python-xyz.scm
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2020-12-28 12:07:01 +0200
committerEfraim Flashner <efraim@flashner.co.il>2020-12-28 13:21:15 +0200
commit9779d089827ed4ba76037187cfd956f8f313b3f5 (patch)
tree235c72c4907f8333a7b6d289660685d4d38876fd /gnu/packages/python-xyz.scm
parent8a2a5ad6961082e3fd8e5ba4608164c34827c88e (diff)
downloadguix-9779d089827ed4ba76037187cfd956f8f313b3f5.tar.gz
gnu: python-helpdev: Enable tests.
* gnu/packages/python-xyz.scm (python-helpdev)[arguments]: Replace check
phase.
[native-inputs]: Add python-pytest.
Diffstat (limited to 'gnu/packages/python-xyz.scm')
-rw-r--r--gnu/packages/python-xyz.scm11
1 files changed, 11 insertions, 0 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 069fe91079..4918f4fafc 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -23264,8 +23264,19 @@ query Watchman to discover file changes.")
          (base32
           "0gfvj28i82va7c264jl2p4cdsl3lpf9fpb9cyjnis55crfdafqmv"))))
     (build-system python-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (replace 'check
+           (lambda* (#:key inputs outputs tests? #:allow-other-keys)
+             (when tests?
+               (add-installed-pythonpath inputs outputs)
+               (invoke "pytest" "tests"))
+             #t)))))
     (propagated-inputs
      `(("python-importlib-metadata" ,python-importlib-metadata)))
+    (native-inputs
+     `(("python-pytest" ,python-pytest)))
     (home-page "https://gitlab.com/dpizetta/helpdev")
     (synopsis
      "Extract information about the Python environment easily")