guix-commits
[Top][All Lists]
Advanced

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

01/01: gnu: python-sh: Use custom 'check phase.


From: guix-commits
Subject: 01/01: gnu: python-sh: Use custom 'check phase.
Date: Tue, 5 Feb 2019 12:54:49 -0500 (EST)

efraim pushed a commit to branch master
in repository guix.

commit fd3638d89a4aec8791ca415f8012b9094d1fc5f4
Author: Efraim Flashner <address@hidden>
Date:   Tue Feb 5 19:53:02 2019 +0200

    gnu: python-sh: Use custom 'check phase.
    
    * gnu/packages/python-xyz.scm (python-sh)[arguments]: Use custom 'check
    phase as suggested by upstream documentation.
    [native-inputs]: Add python-coverage.
---
 gnu/packages/python-xyz.scm | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index ef8565d..a823979 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -445,6 +445,14 @@ concepts.")
         (base32
          "1z2hx357xp3v4cv44xmqp7lli3frndqpyfmpbxf7n76h7s1zaaxm"))))
     (build-system python-build-system)
+    (arguments
+     '(#:phases
+       (modify-phases %standard-phases
+         (replace 'check
+           (lambda _
+             (invoke "python" "sh.py" "test"))))))
+    (native-inputs
+     `(("python-coverage" ,python-coverage)))
     (home-page "https://github.com/amoffat/sh";)
     (synopsis "Python subprocess replacement")
     (description "This package provides a replacement for Python's



reply via email to

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