gnu: python-apsw: Fix tests.

* gnu/packages/python.scm (python-apsw, python2-apsw)[arguments]: Use
  'modify-phases'. Add installed PYTHONPATH before running tests.
This commit is contained in:
Marius Bakke 2016-12-16 02:45:49 +01:00
parent 80ce42bdbf
commit 154d207c43
No known key found for this signature in database
GPG Key ID: A2A06DF2A33A54FA
1 changed files with 6 additions and 7 deletions

View File

@ -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