From 03d428d2452a9a8b14e95e948939634cddcfd825 Mon Sep 17 00:00:00 2001 From: Leo Famulari Date: Mon, 15 Feb 2016 04:33:49 -0500 Subject: [PATCH] gnu: Add python-mpd2. * gnu/packages/python.scm (python-mpd2, python2-mpd2): New * variables. * gnu/packages/patches/python-mpd2-tests.patch: New file. * gnu-system.am (dist_patch_DATA): Add it. --- gnu/packages/python.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 8a44de9..7acb766 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -7821,3 +7821,34 @@ comparing Windows paths ignores casing. (define-public python2-pathlib (package-with-python2 python-pathlib)) + +(define-public python-mpd2 + (package + (name "python-mpd2") + (version "0.5.5") + (source (origin + (method url-fetch) + (uri (pypi-uri "python-mpd2" version)) + (sha256 + (base32 + "0laypd7h1j14b4vrmiayqlzdsh2j5hc3zv4l0fqvbrbw9y6763ii")))) + (build-system python-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda _ (zero? (system* "python" "mpd_test.py"))))))) + (native-inputs `(("python-mock" ,python-mock))) + (home-page "https://github.com/Mic92/python-mpd2") + (synopsis "A Python MPD client library") + (description "Python-mpd2 is a Python library which provides a client +interface for the Music Player Daemon.") + (license lgpl3+) + (properties `((python2-variant . ,(delay python2-mpd2)))))) + +(define-public python2-mpd2 + (let ((mpd2 (package-with-python2 + (strip-python2-variant python-mpd2)))) + (package (inherit mpd2) + (native-inputs `(("python2-setuptools" ,python2-setuptools) + ,@(package-native-inputs mpd2)))))) -- 2.6.3