From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: [PATCH 06/13] gnu: Add python-pylast. Date: Thu, 3 Mar 2016 20:26:32 -0500 Message-ID: <598e0d15aa0e39caa810fe712dfcd959a5bc7a3e.1457054741.git.leo@famulari.name> References: Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38147) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1abeVy-0008PP-Ln for guix-devel@gnu.org; Thu, 03 Mar 2016 20:26:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1abeVw-0002WV-H5 for guix-devel@gnu.org; Thu, 03 Mar 2016 20:26:46 -0500 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:57260) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1abeVw-0002WM-Db for guix-devel@gnu.org; Thu, 03 Mar 2016 20:26:44 -0500 Received: from jasmine.lan (c-69-249-5-231.hsd1.pa.comcast.net [69.249.5.231]) by mail.messagingengine.com (Postfix) with ESMTPA id 7D7EBC00021 for ; Thu, 3 Mar 2016 20:26:43 -0500 (EST) In-Reply-To: In-Reply-To: References: 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/music.scm (python-pylast, python2-pylast): New variables. --- gnu/packages/music.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm index cd5fcb1..4959f3b 100644 --- a/gnu/packages/music.scm +++ b/gnu/packages/music.scm @@ -1218,3 +1218,38 @@ detailed track info including timbre, pitch, rhythm and loudness information. (package (inherit (package-with-python2 (strip-python2-variant python-pyechonest))) (native-inputs `(("python2-setuptools" ,python2-setuptools))))) + +(define-public python-pylast + (package + (name "python-pylast") + (version "1.5.1") + (source (origin + (method url-fetch) + (uri (pypi-uri "pylast" version)) + (sha256 + (base32 + "10znd9xr1vs2ix519jkz3ccm90zciaddcdr2w2wrrh2jyy3bc59a")))) + (build-system python-build-system) + (native-inputs + `(("python-coverage" ,python-coverage) + ("python-mock" ,python-mock) + ("python-pep8" ,python-pep8) + ("python-pytest" ,python-pytest) + ("python-pyflakes" ,python-pyflakes) + ("python-pyyaml" ,python-pyyaml))) + (propagated-inputs + `(("python-six" ,python-six))) + (home-page "https://github.com/pylast/pylast") + (synopsis "A Python interface to Last.fm and Libre.fm") + (description "A Python interface to Last.fm and other API-compatible +websites such as Libre.fm.") + (license license:asl2.0) + (properties `((python2-variant . ,(delay python2-pylast)))))) + +(define-public python2-pylast + (let ((pylast (package-with-python2 + (strip-python2-variant python-pylast)))) + (package (inherit pylast) + (native-inputs + `(("python2-setuptools" ,python2-setuptools) + ,@(package-native-inputs pylast)))))) -- 2.6.3