diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-12-27 11:47:11 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2026-01-01 19:35:00 +0000 |
| commit | 01198c6f06f9bdacffb09321cdf16702e651ec94 (patch) | |
| tree | 436faf3894f71de338e683c9265a313c18baef18 /gnu/packages | |
| parent | 15438a3c871ffb11ddae7088c974c468b14dcc6b (diff) | |
gnu: python-pylast: Switch to pyproject.
* gnu/packages/music.scm (python-pylast):
[source]: Switch to git-fetch.
[build-system]: Switch to pyproject-build-system.
[arguments]<#:tests?>: Enable them.
<#:phases>: Add phase 'set-version.
[native-inputs]: Add python-setuptools. Remove python-coverage.
Change-Id: I17d78a961364633b1ec15ba7af373aa8096b1fdb
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages')
| -rw-r--r-- | gnu/packages/music.scm | 34 |
1 files changed, 22 insertions, 12 deletions
diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm index 64c56a9e456..1cf084a5435 100644 --- a/gnu/packages/music.scm +++ b/gnu/packages/music.scm | |||
| @@ -4297,19 +4297,29 @@ Standard Recording Code} (ISRCs) from audio CDs and submit them to | |||
| 4297 | (package | 4297 | (package |
| 4298 | (name "python-pylast") | 4298 | (name "python-pylast") |
| 4299 | (version "4.2.1") | 4299 | (version "4.2.1") |
| 4300 | (source (origin | 4300 | (source |
| 4301 | (method url-fetch) | 4301 | (origin |
| 4302 | (uri (pypi-uri "pylast" version)) | 4302 | (method git-fetch) |
| 4303 | (sha256 | 4303 | (uri (git-reference |
| 4304 | (base32 | 4304 | (url "https://github.com/pylast/pylast") |
| 4305 | "0pzzhr4mlwpvfhy9gzq86ppz29fmf5z0w3xkl5if1fm59r1afms7")))) | 4305 | (commit version))) |
| 4306 | (build-system python-build-system) | 4306 | (file-name (git-file-name name version)) |
| 4307 | ;; Tests require network access. See | 4307 | (sha256 |
| 4308 | ;; https://github.com/pylast/pylast/issues/105 | 4308 | (base32 "1i3mgxhrr3nbfrg3ppv6qvf3py0p46wa2h36nnfjw2m5bhjd6rhx")))) |
| 4309 | (arguments '(#:tests? #f)) | 4309 | (build-system pyproject-build-system) |
| 4310 | (arguments | ||
| 4311 | (list | ||
| 4312 | #:phases | ||
| 4313 | #~(modify-phases %standard-phases | ||
| 4314 | (add-after 'unpack 'set-version | ||
| 4315 | (lambda _ | ||
| 4316 | (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version)))))) | ||
| 4310 | (native-inputs | 4317 | (native-inputs |
| 4311 | (list python-coverage python-pytest python-flaky python-pyyaml | 4318 | (list python-pytest |
| 4312 | python-setuptools-scm)) | 4319 | python-flaky |
| 4320 | python-pyyaml | ||
| 4321 | python-setuptools-scm | ||
| 4322 | python-setuptools)) | ||
| 4313 | (home-page "https://github.com/pylast/pylast") | 4323 | (home-page "https://github.com/pylast/pylast") |
| 4314 | (synopsis "Python interface to Last.fm and Libre.fm") | 4324 | (synopsis "Python interface to Last.fm and Libre.fm") |
| 4315 | (description "A Python interface to Last.fm and other API-compatible | 4325 | (description "A Python interface to Last.fm and other API-compatible |
