gnu: python-pytaglib: Update to 3.1.0.

* gnu/packages/mp3.scm (python-pytaglib): Update to 3.1.0, use
G-Expressions.
[source]: Switch to git-fetch; remove redundund snippet.
[build-system]: Switch to pyproject-build-system.
[inputs]: Remove taglib; add taglib-next.
[native-inputs]: Add python-setuptools.

Fixes: guix/guix#4662
Change-Id: I44610089ec59a60c8e1ae59cd7a479a516f60067
This commit is contained in:
Sharlatan Hellseher 2025-12-28 13:59:40 +00:00
parent 27c0c4afe1
commit 4349cca1bf
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -763,39 +763,36 @@ fingerprinting library and the Acoustid API.")
(define-public python-pytaglib
(package
(name "python-pytaglib")
(version "1.4.6")
(version "3.1.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pytaglib" version))
(method git-fetch)
(uri (git-reference
(url "https://github.com/supermihi/pytaglib")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"0li970qslfymz4vk1wrij2nfqw3l15cpc3fjjci48mpvg17gbnhn"))
;; Delete file generated by Cython.
(modules '((guix build utils)))
(snippet
'(begin
(delete-file "src/taglib.cpp")))))
(build-system python-build-system)
(base32 "178vvc0rq932w9hmzb1cxlzhzfs5npibrpx41r0zidmhcpv4gr03"))))
(build-system pyproject-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
;; Ensure that the Cython file is regenerated.
(add-after 'unpack 'setup-environment
(lambda _
(setenv "PYTAGLIB_CYTHONIZE" "1"))))))
(list
#:phases
#~(modify-phases %standard-phases
;; Ensure that the Cython file is regenerated.
(add-after 'unpack 'setup-environment
(lambda _
(setenv "PYTAGLIB_CYTHONIZE" "1"))))))
(native-inputs
(list python-cython python-pytest))
(list python-cython
python-pytest
python-setuptools))
(inputs
(list taglib))
(home-page
"https://github.com/supermihi/pytaglib")
(synopsis
"Python bindings for taglib")
(list taglib-next))
(home-page "https://github.com/supermihi/pytaglib")
(synopsis "Python bindings for taglib")
(description
"This package is a Python audio tagging library. It is
cross-platform, works with all Python versions, and is very
simple to use yet fully featured.")
"This package is a Python audio tagging library. It is cross-platform,
works with all Python versions, and is very simple to use yet fully featured.")
(license license:gpl3)))
(define-public wavbreaker