From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Craven Subject: [PATCH 09/11] gnu: Add python-publicsuffix2. Date: Mon, 22 Aug 2016 15:20:16 +0200 Message-ID: <20160822132018.19828-9-david@craven.ch> References: <20160822132018.19828-1-david@craven.ch> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56028) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bbp9g-0007y0-T5 for guix-devel@gnu.org; Mon, 22 Aug 2016 09:20:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bbp9e-000592-Lt for guix-devel@gnu.org; Mon, 22 Aug 2016 09:20:43 -0400 Received: from so254-10.mailgun.net ([198.61.254.10]:48789) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bbp9d-00055B-DI for guix-devel@gnu.org; Mon, 22 Aug 2016 09:20:42 -0400 In-Reply-To: <20160822132018.19828-1-david@craven.ch> 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-publicsuffix2): New variable. (python2-publicsuffix2): New variable. --- gnu/packages/python.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 0c6a1ef..72b3c64 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -10147,3 +10147,29 @@ List.") (native-inputs `(("python2-setuptools" ,python2-setuptools) ,@(package-native-inputs base)))))) + +(define-public python-publicsuffix2 + (package + (name "python-publicsuffix2") + (version "2.20160621") + (source + (origin + (method url-fetch) + (uri (pypi-uri "publicsuffix2" version ".tar.bz2")) + (sha256 + (base32 + "06lx603gdwad5hc3hmn763ngq0rq9bzz1ni3ga72nzk5n872arkd")))) + (build-system python-build-system) + (home-page "https://github.com/pombredanne/python-publicsuffix2") + (synopsis "Get a public suffix for a domain name using the Public Suffix List") + (description "Get a public suffix for a domain name using the Public Suffix +List. Forked from and using the same API as the publicsuffix package.") + (license (list license:expat license:mpl2.0)) + (properties `((python2-variant . ,(delay python2-publicsuffix2)))))) + +(define-public python2-publicsuffix2 + (let ((base (package-with-python2 (strip-python2-variant python-publicsuffix2)))) + (package (inherit base) + (native-inputs + `(("python2-setuptools" ,python2-setuptools) + ,@(package-native-inputs base)))))) -- 2.9.0