gnu: python-pkgconfig: Enable tests.
* gnu/packages/python.scm (python-pkgconfig)[arguments]: Replace 'check' phase. Signed-off-by: Leo Famulari <leo@famulari.name>
This commit is contained in:
parent
5fab62527c
commit
414f620fbb
|
@ -8681,19 +8681,18 @@ CloudFront content delivery network.")
|
||||||
(inputs
|
(inputs
|
||||||
`(("pkg-config" ,pkg-config)))
|
`(("pkg-config" ,pkg-config)))
|
||||||
(arguments
|
(arguments
|
||||||
`(;; Tests fail with "ValueError: _type_ 'v' not supported" on Python 3,
|
`(#:phases
|
||||||
;; and on Python 2 they need the dl module deprecated since Python 2.6.
|
|
||||||
#:tests? #f
|
|
||||||
;; Hard-code the path to pkg-config.
|
|
||||||
#:phases
|
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-before
|
(add-before 'build 'patch
|
||||||
'build 'patch
|
;; Hard-code the path to pkg-config.
|
||||||
(lambda _
|
(lambda _
|
||||||
(substitute* "pkgconfig/pkgconfig.py"
|
(substitute* "pkgconfig/pkgconfig.py"
|
||||||
(("cmd = 'pkg-config")
|
(("cmd = 'pkg-config")
|
||||||
(string-append "cmd = '" (which "pkg-config"))))
|
(string-append "cmd = '" (which "pkg-config"))))
|
||||||
#t)))))
|
#t))
|
||||||
|
(replace 'check
|
||||||
|
(lambda _
|
||||||
|
(invoke "nosetests" "test.py"))))))
|
||||||
(home-page "https://github.com/matze/pkgconfig")
|
(home-page "https://github.com/matze/pkgconfig")
|
||||||
(synopsis "Python interface for pkg-config")
|
(synopsis "Python interface for pkg-config")
|
||||||
(description "This module provides a Python interface to pkg-config. It
|
(description "This module provides a Python interface to pkg-config. It
|
||||||
|
|
Loading…
Reference in New Issue