aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/python.scm
diff options
context:
space:
mode:
authorMarius Bakke <mbakke@fastmail.com>2018-10-22 18:30:04 +0200
committerMarius Bakke <mbakke@fastmail.com>2018-10-22 23:08:14 +0200
commit3a23036a0a8fb51b56ec88a06c64bf546f97032b (patch)
treecbbc4f40f3055720289758ff2337a1e9bd4b3229 /gnu/packages/python.scm
parentc166a88dea354f0fb253e7d389e68f1b11fe1de4 (diff)
downloadguix-3a23036a0a8fb51b56ec88a06c64bf546f97032b.tar
guix-3a23036a0a8fb51b56ec88a06c64bf546f97032b.tar.gz
gnu: python-datrie: Fix FTBFS with Python 3.7.
* gnu/packages/python.scm (python-datrie)[arguments]: Add phase 'cythonize'.
Diffstat (limited to 'gnu/packages/python.scm')
-rw-r--r--gnu/packages/python.scm8
1 files changed, 8 insertions, 0 deletions
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 99b214f3bc..a1718c73b1 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -5203,6 +5203,14 @@ of the structure, dynamics, and functions of complex networks.")
(base32
"08r0if7dry2q7p34gf7ffyrlnf4bdvnprxgydlfxgfnvq8f3f4bs"))))
(build-system python-build-system)
+ (arguments
+ `(#:phases (modify-phases %standard-phases
+ (add-before 'build 'cythonize
+ (lambda _
+ ;; Regenerate Cython classes to solve ABI issues with Python
+ ;; 3.7.0. See <https://github.com/pytries/datrie/issues/52>.
+ (invoke "cython" "src/datrie.pyx" "src/cdatrie.pxd"
+ "src/stdio_ext.pxd" "-a"))))))
(native-inputs
`(("python-cython" ,python-cython)
("python-hypothesis" ,python-hypothesis)