summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-12-27 11:23:06 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2026-01-01 19:35:00 +0000
commit5d65dde9e97d88ecd1f6e7690ddbb4aee4b311db (patch)
tree760aff548bc0287e268539dfabc8b607c63f94a9 /gnu
parent66fb4f7327bf8943b4f4687b113db19af8785a10 (diff)
gnu: python-discid: Switch to pyproject.
* gnu/packages/music.scm (python-discid): [build-system]: Switch to pyproject-build-system. [arguments]: Improve style. <#:test-flags>: Ignore failing tests. [native-inputs]: Add python-pytest, python-setuptools. Change-Id: I7662ed899159a5cab6b610bbb4ebb1bfe845e194 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/music.scm35
1 files changed, 19 insertions, 16 deletions
diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm
index f57d23d4cc..ac57bd8f4d 100644
--- a/gnu/packages/music.scm
+++ b/gnu/packages/music.scm
@@ -6193,23 +6193,26 @@ ISRCs and the MCN (=UPC/EAN) from disc.")
(method url-fetch)
(uri (pypi-uri "discid" version))
(sha256
- (base32
- "1fgp67nhqlbvhhwrcxq5avil7alpzw4s4579hlyvxzbphdnbz8vq"))))
- (build-system python-build-system)
- (inputs
- (list libdiscid))
+ (base32 "1fgp67nhqlbvhhwrcxq5avil7alpzw4s4579hlyvxzbphdnbz8vq"))))
+ (build-system pyproject-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-before 'build 'set-libdiscid
- ;; Set path of libdiscid
- (lambda* (#:key inputs #:allow-other-keys)
- (let ((discid (assoc-ref inputs "libdiscid")))
- (substitute* "discid/libdiscid.py"
- (("lib_name = (.*)$" all name)
- (string-append "lib_name = \"" discid
- "/lib/libdiscid.so.0\"\n")))
- #t))))))
+ (list
+ #:test-flags
+ #~(list "-k" (string-join
+ (list "not test_read_features"
+ "test_read_put"
+ "test_read_simple")
+ " and not "))
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'build 'set-libdiscid
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let ((discid (search-input-file inputs "/lib/libdiscid.so.0")))
+ (substitute* "discid/libdiscid.py"
+ (("lib_name = (.*)$" all name)
+ (string-append "lib_name = \"" discid "\"\n")))))))))
+ (native-inputs (list python-pytest python-setuptools))
+ (inputs (list libdiscid))
(home-page "https://python-discid.readthedocs.io/")
(synopsis "Python bindings for Libdiscid")
(description