gnu: vdirsyncer: Use add-installed-pythonpath in the check phase.
* gnu/packages/dav.scm (vdirsyncer)[arguments]: Move the check phase into the normal part of the build sequence and use add-installed-pythonpath.master
parent
945b6721eb
commit
f54cf6428b
|
@ -67,8 +67,13 @@ clients.")
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases (modify-phases %standard-phases
|
`(#:phases (modify-phases %standard-phases
|
||||||
;; vdirsyncer requires itself to be installed in order to build
|
(replace 'check
|
||||||
;; the manpage.
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
|
(add-installed-pythonpath inputs outputs)
|
||||||
|
(setenv "DETERMINISTIC_TESTS" "true")
|
||||||
|
(setenv "DAV_SERVER" "radicale")
|
||||||
|
(setenv "REMOTESTORAGE_SERVER" "skip")
|
||||||
|
(zero? (system* "make" "test"))))
|
||||||
(add-after 'install 'manpage
|
(add-after 'install 'manpage
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
(add-installed-pythonpath inputs outputs)
|
(add-installed-pythonpath inputs outputs)
|
||||||
|
@ -77,16 +82,7 @@ clients.")
|
||||||
"docs/_build/man/vdirsyncer.1"
|
"docs/_build/man/vdirsyncer.1"
|
||||||
(string-append
|
(string-append
|
||||||
(assoc-ref outputs "out")
|
(assoc-ref outputs "out")
|
||||||
"/share/man/man1"))))
|
"/share/man/man1")))))))
|
||||||
;; vdirsyncer requires itself to be installed in order to run the test
|
|
||||||
;; suite.
|
|
||||||
(delete 'check)
|
|
||||||
(add-after 'install 'check-later
|
|
||||||
(lambda _
|
|
||||||
(setenv "DETERMINISTIC_TESTS" "true")
|
|
||||||
(setenv "DAV_SERVER" "radicale")
|
|
||||||
(setenv "REMOTESTORAGE_SERVER" "skip")
|
|
||||||
(zero? (system* "make" "test")))))))
|
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("python-setuptools-scm" ,python-setuptools-scm)
|
`(("python-setuptools-scm" ,python-setuptools-scm)
|
||||||
("python-sphinx" ,python-sphinx)
|
("python-sphinx" ,python-sphinx)
|
||||||
|
|
Reference in New Issue