guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

10/10: gnu: pythonbitstring: Run tests.


From: guix-commits
Subject: 10/10: gnu: pythonbitstring: Run tests.
Date: Mon, 28 Dec 2020 06:22:44 -0500 (EST)

efraim pushed a commit to branch master
in repository guix.

commit 3742c7f6dc0e9e7e2bf9375f063f1439361a7137
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Mon Dec 28 12:19:14 2020 +0200

    gnu: pythonbitstring: Run tests.
    
    * gnu/packages/python-xyx.scm (python-bitstring)[arguments]: Replace
    check phase.
    [native-inputs]: Add python-pytesst.
---
 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 4918f4f..43d767b 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -23324,6 +23324,18 @@ Qt applications.")
          (base32
           "0jl6192dwrlm5ybkbh7ywmyaymrc3cmz9y07nm7qdli9n9rfpwzx"))))
     (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)
+               (with-directory-excursion "test"
+                 (invoke "pytest")))
+             #t)))))
+    (native-inputs
+     `(("python-pytest" ,python-pytest)))
     (home-page "https://github.com/scott-griffiths/bitstring";)
     (synopsis
      "Simple construction, analysis and modification of binary data")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]