summaryrefslogtreecommitdiff
path: root/gnu/packages/mpd.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/packages/mpd.scm')
-rw-r--r--gnu/packages/mpd.scm39
1 files changed, 24 insertions, 15 deletions
diff --git a/gnu/packages/mpd.scm b/gnu/packages/mpd.scm
index a4f8538bd2..bb271d9ddf 100644
--- a/gnu/packages/mpd.scm
+++ b/gnu/packages/mpd.scm
@@ -39,6 +39,7 @@
#:use-module (guix build-system cmake)
#:use-module (guix build-system gnu)
#:use-module (guix build-system meson)
+ #:use-module (guix build-system pyproject)
#:use-module (guix build-system python)
#:use-module (gnu packages algebra)
#:use-module (gnu packages audio)
@@ -74,6 +75,7 @@
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages pretty-print)
#:use-module (gnu packages python)
+ #:use-module (gnu packages python-build)
#:use-module (gnu packages python-xyz)
#:use-module (gnu packages pulseaudio)
#:use-module (gnu packages qt)
@@ -119,7 +121,7 @@ interfacing MPD in the C, C++ & Objective C languages.")
(define-public mpd
(package
(name "mpd")
- (version "0.23.17")
+ (version "0.24.5")
(source (origin
(method url-fetch)
(uri
@@ -128,7 +130,7 @@ interfacing MPD in the C, C++ & Objective C languages.")
"/mpd-" version ".tar.xz"))
(sha256
(base32
- "1wnzhr9ip38xm946zc269yxii28bhhd9yamqinq46mv927l4yvx8"))))
+ "04qa2rc7a96qyim6cm1zh7ilrqx4n0gb7prmiy6q53cwr6jwppv9"))))
(build-system meson-build-system)
(arguments
(list
@@ -161,7 +163,6 @@ interfacing MPD in the C, C++ & Objective C languages.")
(list ao
alsa-lib
avahi
- boost
chromaprint
curl
dbus
@@ -358,20 +359,28 @@ information about tracks being played to a scrobbler, such as Libre.FM.")
(package
(name "python-mpd2")
(version "3.0.4")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "python-mpd2" version))
- (sha256
- (base32
- "1r8saq1460yfa0sxfrvxqs2r453wz2xchlc9gzbpqznr49786rvs"))))
- (build-system python-build-system)
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/Mic92/python-mpd2")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "06j1n43sg3blp89xwgm64yssz6478y5r09xwdg9mnsgihpjpm89a"))))
+ (build-system pyproject-build-system)
(arguments
- '(#:phases
- (modify-phases %standard-phases
- (replace 'check
- (lambda _ (invoke "python" "-m" "pytest" "mpd/tests.py"))))))
+ (list
+ #:test-flags #~(list "-m" "unittest" "mpd.tests")
+ #:phases
+ #~(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
- (list python-mock python-pytest))
+ (list python-mock python-setuptools python-wheel))
(home-page "https://github.com/Mic92/python-mpd2")
(synopsis "Python MPD client library")
(description "Python-mpd2 is a Python library which provides a client