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:
parent
80ce42bdbf
commit
154d207c43
|
@ -5155,13 +5155,12 @@ implementation of D-Bus.")
|
||||||
`(("sqlite" ,sqlite)))
|
`(("sqlite" ,sqlite)))
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
`(#:phases
|
||||||
;; swap check and install phases
|
(modify-phases %standard-phases
|
||||||
(alist-cons-after
|
(delete 'check)
|
||||||
'install 'check
|
(add-after 'install 'check
|
||||||
(assoc-ref %standard-phases 'check)
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
(alist-delete
|
(add-installed-pythonpath inputs outputs)
|
||||||
'check
|
(zero? (system* "python" "setup.py" "test")))))))
|
||||||
%standard-phases))))
|
|
||||||
(home-page "https://github.com/rogerbinns/apsw/")
|
(home-page "https://github.com/rogerbinns/apsw/")
|
||||||
(synopsis "Another Python SQLite Wrapper")
|
(synopsis "Another Python SQLite Wrapper")
|
||||||
(description "APSW is a Python wrapper for the SQLite
|
(description "APSW is a Python wrapper for the SQLite
|
||||||
|
|
Loading…
Reference in New Issue