From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: [PATCH 4/6] gnu: Add python-furl. Date: Thu, 3 Nov 2016 11:56:02 +0100 Message-ID: <20161103105604.2937-5-dannym@scratchpost.org> References: <20161103105604.2937-1-dannym@scratchpost.org> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51306) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c2Fh3-0003q7-Em for guix-devel@gnu.org; Thu, 03 Nov 2016 06:56:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c2Fh2-0007cL-Mr for guix-devel@gnu.org; Thu, 03 Nov 2016 06:56:25 -0400 Received: from dd1012.kasserver.com ([85.13.128.8]:39062) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c2Fh2-0007bx-Gk for guix-devel@gnu.org; Thu, 03 Nov 2016 06:56:24 -0400 In-Reply-To: <20161103105604.2937-1-dannym@scratchpost.org> 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" To: guix-devel@gnu.org * gnu/packages/python.scm (python-furl, python2-furl): New variables. --- gnu/packages/python.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index aee97cb..b765a74 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -3894,6 +3894,37 @@ simple and Pythonic domain language.") `(("python2-setuptools" ,python2-setuptools) ,@(package-native-inputs base)))))) +(define-public python-furl + (package + (name "python-furl") + (version "0.5.6") + (source + (origin + (method url-fetch) + (uri (pypi-uri "furl" version)) + (sha256 + (base32 + "0lzpfpm686hvz3sr1mcrnd1b3lgmnw8v59gb43wfi98r3b671pqc")))) + (build-system python-build-system) + (propagated-inputs + `(("python-six" ,python-six) + ("python-orderedmultidict" ,python-orderedmultidict))) + (native-inputs + `(("python-pycodestyle" ,python-pycodestyle))) + (home-page "https://github.com/gruns/furl") + (synopsis "URL manipulation in Python") + (description "This package provides simple URL manipulation in Python.") + (license license:unlicense) + (properties `((python2-variant . ,(delay python2-furl)))))) + +(define-public python2-furl + (let ((base (package-with-python2 (strip-python2-variant + python-furl)))) + (package (inherit base) + (native-inputs + `(("python2-setuptools" ,python2-setuptools) + ,@(package-native-inputs base)))))) + (define-public python-sqlalchemy-utils (package (name "python-sqlalchemy-utils")