@@ -160,6 +160,7 @@ (define-module (gnu packages python-xyz)
#:use-module (gnu packages adns)
#:use-module (gnu packages aidc)
#:use-module (gnu packages attr)
+ #:use-module (gnu packages autotools)
#:use-module (gnu packages backup)
#:use-module (gnu packages bash)
#:use-module (gnu packages check)
@@ -17712,32 +17713,35 @@ (define-public python-future
(define-public python-cysignals
(package
(name "python-cysignals")
- (version "1.9.0")
+ (version "1.11.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "cysignals" version))
(sha256
(base32
- "15ix8crpad26cfl1skyg7qajqqfdrm8q5ahhmlfmqi1aw0jqj2g2"))))
+ "19kgba662s3s942k3mzkr92mmb37793b49mq460q88dy1xvb2n2q"))))
(build-system python-build-system)
(native-inputs
- (list python-cython python-sphinx))
+ (list autoconf gdb python-cython python-sphinx))
(inputs
(list pari-gp))
(arguments
- `(#:modules ((guix build python-build-system)
- ((guix build gnu-build-system) #:prefix gnu:)
- (guix build utils))
- ;; FIXME: Tests are executed after installation and currently fail
- ;; when not installing into standard locations; the author is working
- ;; on a fix.
- #:tests? #f
- #:phases
- (modify-phases %standard-phases
- (add-before
- 'build 'configure
- (assoc-ref gnu:%standard-phases 'configure)))))
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'set-shell-for-configure-script
+ (lambda _
+ (setenv "CONFIG_SHELL" (which "sh"))))
+ (add-after 'unpack 'fix-testgdb.py
+ (lambda _
+ (substitute* "testgdb.py"
+ (("assertIn\\(b")
+ "assertIn(")
+ (("__pyx_pf_9cysignals_5tests_46unguarded_dereference_null_pointer\\(\\)")
+ "unguarded_dereference_null_pointer")
+ (("cdef void dereference_null_pointer\\(\\) nogil:")
+ "dereference_null_pointer")))))))
(home-page
"https://github.com/sagemath/cysignals")
(synopsis