guix-commits
[Top][All Lists]
Advanced

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

01/05: gnu: python-apsw: Fix tests.


From: Marius Bakke
Subject: 01/05: gnu: python-apsw: Fix tests.
Date: Fri, 16 Dec 2016 12:12:52 +0000 (UTC)

mbakke pushed a commit to branch python-tests
in repository guix.

commit 154d207c435a5a16d44bcb98dbb31c124dc87574
Author: Marius Bakke <address@hidden>
Date:   Fri Dec 16 02:45:49 2016 +0100

    gnu: python-apsw: Fix tests.
    
    * gnu/packages/python.scm (python-apsw, python2-apsw)[arguments]: Use
      'modify-phases'. Add installed PYTHONPATH before running tests.
---
 gnu/packages/python.scm |   13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 90c9ecd..7e7e54f 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -5155,13 +5155,12 @@ implementation of D-Bus.")
       `(("sqlite" ,sqlite)))
     (arguments
      `(#:phases
-        ;; swap check and install phases
-        (alist-cons-after
-         'install 'check
-         (assoc-ref %standard-phases 'check)
-         (alist-delete
-          'check
-          %standard-phases))))
+       (modify-phases %standard-phases
+         (delete 'check)
+         (add-after 'install 'check
+           (lambda* (#:key inputs outputs #:allow-other-keys)
+             (add-installed-pythonpath inputs outputs)
+             (zero? (system* "python" "setup.py" "test")))))))
     (home-page "https://github.com/rogerbinns/apsw/";)
     (synopsis "Another Python SQLite Wrapper")
     (description "APSW is a Python wrapper for the SQLite



reply via email to

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