From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Baines Subject: [PATCH 1/2] gnu: Add python-mpd2 Date: Thu, 18 Feb 2016 21:26:53 +0000 Message-ID: <1455830814-4977-2-git-send-email-mail@cbaines.net> References: <1455830814-4977-1-git-send-email-mail@cbaines.net> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40095) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWW6X-0005Ii-BB for guix-devel@gnu.org; Thu, 18 Feb 2016 16:27:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aWW6T-0007gL-B9 for guix-devel@gnu.org; Thu, 18 Feb 2016 16:27:17 -0500 Received: from mira.cbaines.net ([2a01:7e00::f03c:91ff:fe69:8da9]:34260) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWW6T-0007fh-4Z for guix-devel@gnu.org; Thu, 18 Feb 2016 16:27:13 -0500 In-Reply-To: <1455830814-4977-1-git-send-email-mail@cbaines.net> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org * gnu/packages/python.scm (python-mpd2): New variable * gnu/packages/python.scm Import lgpl3. --- gnu/packages/python.scm | 35 ++++++++++++++++++++++++++++++++--- 1 file changed, 32 insertions(+), 3 deletions(-) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 24af2d8..73dab38 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -36,9 +36,9 @@ (define-module (gnu packages python) #:use-module ((guix licenses) #:select (asl2.0 bsd-4 bsd-3 bsd-2 non-copyleft cc0 x11 x11-style - gpl2 gpl2+ gpl3+ lgpl2.0+ lgpl2.1 lgpl2.1+ lgpl3+ agpl3+ - isc mpl2.0 psfl public-domain unlicense x11-style - zpl2.1)) + gpl2 gpl2+ gpl3+ lgpl2.0+ lgpl2.1 lgpl2.1+ lgpl3 lgpl3+ + agpl3+ isc mpl2.0 psfl public-domain unlicense + x11-style zpl2.1)) #:use-module ((guix licenses) #:select (expat zlib) #:prefix license:) #:use-module (gnu packages) #:use-module (gnu packages attr) @@ -758,6 +758,35 @@ have been used.") (package-with-python2 python-mock)) +(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 + (alist-replace + 'check + (lambda _ (zero? (system* "python" "mpd_test.py"))) + %standard-phases))) + (inputs + `(("python-setuptools" ,python-setuptools) + ("python-mock" ,python-mock) + ("python-unittest2" ,python-unittest2))) + (home-page + "https://github.com/Mic92/python-mpd2") + (synopsis "Python MPD client library") + (description "A Python MPD client library") + (license lgpl3))) + + (define-public python-setuptools (package (name "python-setuptools") -- 2.7.0