mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-05-28 03:51:53 +02:00
gnu: python-mpd2: Switch to pyproject.
* gnu/packages/mpd.scm (python-mpd2): [source]: Switch to git-fetch. [build-system]: Switch to pyproject-build-system. [arguments]<#:test-flags>: Set them. <#:phases>: Replace 'check phase. [native-inputs]: Add python-setuptools, python-wheel. Remove python-pytest. Change-Id: If713f6f1ebf47f14f1f3d8a435be00c725f36a09 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
committed by
Sharlatan Hellseher
parent
b176f7c33c
commit
6e467df8d9
+22
-12
@@ -39,6 +39,7 @@
|
|||||||
#:use-module (guix build-system cmake)
|
#:use-module (guix build-system cmake)
|
||||||
#:use-module (guix build-system gnu)
|
#:use-module (guix build-system gnu)
|
||||||
#:use-module (guix build-system meson)
|
#:use-module (guix build-system meson)
|
||||||
|
#:use-module (guix build-system pyproject)
|
||||||
#:use-module (guix build-system python)
|
#:use-module (guix build-system python)
|
||||||
#:use-module (gnu packages algebra)
|
#:use-module (gnu packages algebra)
|
||||||
#:use-module (gnu packages audio)
|
#:use-module (gnu packages audio)
|
||||||
@@ -74,6 +75,7 @@
|
|||||||
#:use-module (gnu packages pkg-config)
|
#:use-module (gnu packages pkg-config)
|
||||||
#:use-module (gnu packages pretty-print)
|
#:use-module (gnu packages pretty-print)
|
||||||
#:use-module (gnu packages python)
|
#:use-module (gnu packages python)
|
||||||
|
#:use-module (gnu packages python-build)
|
||||||
#:use-module (gnu packages python-xyz)
|
#:use-module (gnu packages python-xyz)
|
||||||
#:use-module (gnu packages pulseaudio)
|
#:use-module (gnu packages pulseaudio)
|
||||||
#:use-module (gnu packages qt)
|
#:use-module (gnu packages qt)
|
||||||
@@ -358,20 +360,28 @@ information about tracks being played to a scrobbler, such as Libre.FM.")
|
|||||||
(package
|
(package
|
||||||
(name "python-mpd2")
|
(name "python-mpd2")
|
||||||
(version "3.0.4")
|
(version "3.0.4")
|
||||||
(source (origin
|
(source
|
||||||
(method url-fetch)
|
(origin
|
||||||
(uri (pypi-uri "python-mpd2" version))
|
(method git-fetch)
|
||||||
(sha256
|
(uri (git-reference
|
||||||
(base32
|
(url "https://github.com/Mic92/python-mpd2")
|
||||||
"1r8saq1460yfa0sxfrvxqs2r453wz2xchlc9gzbpqznr49786rvs"))))
|
(commit (string-append "v" version))))
|
||||||
(build-system python-build-system)
|
(file-name (git-file-name name version))
|
||||||
|
(sha256
|
||||||
|
(base32 "06j1n43sg3blp89xwgm64yssz6478y5r09xwdg9mnsgihpjpm89a"))))
|
||||||
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:phases
|
(list
|
||||||
(modify-phases %standard-phases
|
#:test-flags #~(list "-m" "unittest" "mpd.tests")
|
||||||
(replace 'check
|
#:phases
|
||||||
(lambda _ (invoke "python" "-m" "pytest" "mpd/tests.py"))))))
|
#~(modify-phases %standard-phases
|
||||||
|
(replace 'check
|
||||||
|
(lambda* (#:key tests? test-flags #:allow-other-keys)
|
||||||
|
(if tests?
|
||||||
|
(apply invoke "python" test-flags)
|
||||||
|
(format #t "test suite not run~%")))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list python-mock python-pytest))
|
(list python-mock python-setuptools python-wheel))
|
||||||
(home-page "https://github.com/Mic92/python-mpd2")
|
(home-page "https://github.com/Mic92/python-mpd2")
|
||||||
(synopsis "Python MPD client library")
|
(synopsis "Python MPD client library")
|
||||||
(description "Python-mpd2 is a Python library which provides a client
|
(description "Python-mpd2 is a Python library which provides a client
|
||||||
|
|||||||
Reference in New Issue
Block a user