gnu: python-gevent: Update to 1.5.0.
* gnu/packages/python-xyz.scm (python-gevent): Update to 1.5.0. [arguments]: Split the unbundling and include path adjustments intwo two phases. Enable previously failing test; disable two others. Use a format string instead of DISPLAY when writing skipped_tests.txt.master
parent
e66d5d6e29
commit
72cf14948d
|
@ -11047,13 +11047,13 @@ graphviz.")
|
||||||
(define-public python-gevent
|
(define-public python-gevent
|
||||||
(package
|
(package
|
||||||
(name "python-gevent")
|
(name "python-gevent")
|
||||||
(version "1.4.0")
|
(version "1.5.0")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (pypi-uri "gevent" version))
|
(uri (pypi-uri "gevent" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1lchr4akw2jkm5v4kz7bdm4wv3knkfhbfn9vkkz4s5yrkcxzmdqy"))
|
"0aac3d4vhv5n4rsb6cqzq0d1xx9immqz4fmpddw35yxkwdc450dj"))
|
||||||
(modules '((guix build utils)))
|
(modules '((guix build utils)))
|
||||||
(snippet
|
(snippet
|
||||||
'(begin
|
'(begin
|
||||||
|
@ -11079,14 +11079,16 @@ graphviz.")
|
||||||
(find-files "src/greentest" "\\.py$"))
|
(find-files "src/greentest" "\\.py$"))
|
||||||
#t))
|
#t))
|
||||||
(add-before 'build 'do-not-use-bundled-sources
|
(add-before 'build 'do-not-use-bundled-sources
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(lambda _
|
||||||
(setenv "GEVENTSETUP_EMBED" "0")
|
(setenv "GEVENTSETUP_EMBED" "0")
|
||||||
|
|
||||||
;; Prevent building bundled libev.
|
;; Prevent building bundled libev.
|
||||||
(substitute* "setup.py"
|
(substitute* "setup.py"
|
||||||
(("run_make=_BUILDING")
|
(("run_make=_BUILDING")
|
||||||
"run_make=False"))
|
"run_make=False"))
|
||||||
|
#t))
|
||||||
|
(add-before 'build 'add-greenlet-on-C_INCLUDE_PATH
|
||||||
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
(let ((greenlet (string-append
|
(let ((greenlet (string-append
|
||||||
(assoc-ref inputs "python-greenlet")
|
(assoc-ref inputs "python-greenlet")
|
||||||
"/include")))
|
"/include")))
|
||||||
|
@ -11137,9 +11139,6 @@ graphviz.")
|
||||||
"test_thread.py"
|
"test_thread.py"
|
||||||
"test_threading.py"
|
"test_threading.py"
|
||||||
"test__threading_2.py"
|
"test__threading_2.py"
|
||||||
;; FIXME: test_patch_twice_warning_events fails for
|
|
||||||
;; no apparent reason. Needs more investigation!
|
|
||||||
"test__monkey.py"
|
|
||||||
;; These tests rely on KeyboardInterrupts which do not
|
;; These tests rely on KeyboardInterrupts which do not
|
||||||
;; work inside the build container for some reason
|
;; work inside the build container for some reason
|
||||||
;; (lack of controlling terminal?).
|
;; (lack of controlling terminal?).
|
||||||
|
@ -11147,12 +11146,15 @@ graphviz.")
|
||||||
"test__issues461_471.py"
|
"test__issues461_471.py"
|
||||||
;; TODO: Patch out the tests that use getprotobyname, etc
|
;; TODO: Patch out the tests that use getprotobyname, etc
|
||||||
;; instead of disabling all the tests from these files.
|
;; instead of disabling all the tests from these files.
|
||||||
|
"test__resolver_dnspython.py"
|
||||||
|
"test__doctests.py"
|
||||||
"test__all__.py"
|
"test__all__.py"
|
||||||
"test___config.py"
|
"test___config.py"
|
||||||
"test__execmodules.py")))
|
"test__execmodules.py")))
|
||||||
(call-with-output-file "skipped_tests.txt"
|
(call-with-output-file "skipped_tests.txt"
|
||||||
(lambda (port)
|
(lambda (port)
|
||||||
(display (string-join disabled-tests "\n") port)))
|
(format port "~a~%"
|
||||||
|
(string-join disabled-tests "\n"))))
|
||||||
#t)))
|
#t)))
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda _
|
(lambda _
|
||||||
|
|
Reference in New Issue