From 9779d089827ed4ba76037187cfd956f8f313b3f5 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Mon, 28 Dec 2020 12:07:01 +0200 Subject: [PATCH] gnu: python-helpdev: Enable tests. * gnu/packages/python-xyz.scm (python-helpdev)[arguments]: Replace check phase. [native-inputs]: Add python-pytest. --- gnu/packages/python-xyz.scm | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 @@ (define-public python-helpdev (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")