summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-07-11 15:48:21 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-08-08 16:49:00 +0100
commit709006f89aa1a0eb6fd7de26d5cc4138018dfeea (patch)
tree2ad300a8309d5bc0f150fb07d1c0e35d9d9ecbb2
parentf3246bd414c1751712244fab398fa1a0c2195a91 (diff)
gnu: python-pyliblo3: Fix build.
* gnu/packages/audio.scm (python-pyliblo3): [arguments] <test-backend>: Use custom. <phases>: Add 'fix-compilation. Change-Id: Ie188c8038c239db94871593f0dfbf6e3b0ea899e
-rw-r--r--gnu/packages/audio.scm21
1 files changed, 19 insertions, 2 deletions
diff --git a/gnu/packages/audio.scm b/gnu/packages/audio.scm
index 5edacbd984..f17eda949e 100644
--- a/gnu/packages/audio.scm
+++ b/gnu/packages/audio.scm
@@ -3561,8 +3561,25 @@ included are the command line utilities @code{send_osc} and @code{dump_osc}.")
(base32
"1rr2m8jxa5yxyb3pw6h93kvdxg7x0m6sxxxvgn34vq8k8mg1kz21"))))
(build-system pyproject-build-system)
- (native-inputs (list python-cython python-setuptools python-wheel))
- (inputs (list liblo))
+ (arguments
+ (list
+ #:test-backend #~'custom
+ #:test-flags #~(list "test/unit.py")
+ #:phases
+ #~(modify-phases %standard-phases
+ ;; long is not available and replaced by int, proposed in
+ ;; <https://github.com/gesellkammer/pyliblo3/pull/15>.
+ (add-after 'unpack 'fix-compilation
+ (lambda _
+ (substitute* "pyliblo3/_liblo.pyx"
+ (("long\\(") "int(")
+ ((", long") "")))))))
+ (native-inputs
+ (list python-cython
+ python-setuptools
+ python-wheel))
+ (inputs
+ (list liblo))
(home-page "https://github.com/gesellkammer/pyliblo3")
(synopsis "Python bindings for liblo")
(description