mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-14 15:10:16 -05:00
gnu: python-pyzmq: Enable tests.
* gnu/packages/python-xyz.scm (python-pyzmq)[arguments]: Remove #:tests?. Add new 'build-extensions' phase to build Cython extensions before tests. [native-inputs]: Remove python-nose. Add python-cython and python-pytest. Signed-off-by: Leo Famulari <leo@famulari.name>
This commit is contained in:
parent
74c7055339
commit
65e4a610ae
1 changed files with 8 additions and 4 deletions
|
@ -9124,14 +9124,18 @@ (define-public python-pyzmq
|
|||
(arguments
|
||||
`(#:configure-flags
|
||||
(list (string-append "--zmq=" (assoc-ref %build-inputs "zeromq")))
|
||||
;; FIXME: You must build pyzmq with 'python setup.py build_ext
|
||||
;; --inplace' for 'python setup.py test' to work.
|
||||
#:tests? #f))
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-before 'check 'build-extensions
|
||||
(lambda _
|
||||
;; Cython extensions have to be built before running the tests.
|
||||
(invoke "python" "setup.py" "build_ext" "--inplace"))))))
|
||||
(inputs
|
||||
`(("zeromq" ,zeromq)))
|
||||
(native-inputs
|
||||
`(("pkg-config" ,pkg-config)
|
||||
("python-nose" ,python-nose)))
|
||||
("python-cython" ,python-cython)
|
||||
("python-pytest" ,python-pytest)))
|
||||
(home-page "https://github.com/zeromq/pyzmq")
|
||||
(synopsis "Python bindings for 0MQ")
|
||||
(description
|
||||
|
|
Loading…
Reference in a new issue