[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 08/11] gnu: Add python-publicsuffix.
From: |
David Craven |
Subject: |
[PATCH 08/11] gnu: Add python-publicsuffix. |
Date: |
Mon, 22 Aug 2016 15:20:15 +0200 |
* gnu/packages/python.scm (python-publicsuffix): New variable.
(python2-publicsuffix): New variable.
---
gnu/packages/python.scm | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index bcabf22..0c6a1ef 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -10120,3 +10120,30 @@ binary or text.")
(native-inputs
`(("python2-setuptools" ,python2-setuptools)
,@(package-native-inputs base))))))
+
+(define-public python-publicsuffix
+ (package
+ (name "python-publicsuffix")
+ (version "1.1.0")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "publicsuffix" version))
+ (sha256
+ (base32
+ "1adx520249z2cy7ykwjr1k190mn2888wqn9jf8qm27ly4qymjxxf"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:tests? #f)) ; tests use the internet
+ (home-page "https://www.tablix.org/~avian/git/publicsuffix.git")
+ (synopsis "Get suffix for a domain name")
+ (description "Get a public suffix for a domain name using the Public Suffix
+List.")
+ (license license:expat)
+ (properties `((python2-variant . ,(delay python2-nltk))))))
+
+(define-public python2-publicsuffix
+ (let ((base (package-with-python2 (strip-python2-variant
python-publicsuffix))))
+ (package (inherit base)
+ (native-inputs
+ `(("python2-setuptools" ,python2-setuptools)
+ ,@(package-native-inputs base))))))
--
2.9.0
- Re: [PATCH 04/12] gnu: python: Add python-binaryornot., (continued)
- Re: [PATCH 04/12] gnu: python: Add python-binaryornot., Leo Famulari, 2016/08/08
- Re: [PATCH 04/12] gnu: python: Add python-binaryornot., David Craven, 2016/08/22
- Re: [PATCH 04/12] gnu: python: Add python-binaryornot., David Craven, 2016/08/22
- [PATCH 01/11] import: utils: Symbols from 'license->symbol' have a license: prefix., David Craven, 2016/08/22
- [PATCH 05/11] gnu: Add python-pymongo., David Craven, 2016/08/22
- [PATCH 06/11] gnu: Add python-sh., David Craven, 2016/08/22
- Re: [PATCH 06/11] gnu: Add python-sh., Danny Milosavljevic, 2016/08/27
- [PATCH 03/11] gnu: Add python-binaryornot., David Craven, 2016/08/22
- [PATCH 04/11] gnu: Add python-nltk., David Craven, 2016/08/22
- Re: [PATCH 04/11] gnu: Add python-nltk., Danny Milosavljevic, 2016/08/27
- [PATCH 08/11] gnu: Add python-publicsuffix.,
David Craven <=
- [PATCH 07/11] gnu: Add python-schematics., David Craven, 2016/08/22
- [PATCH 10/11] gnu: Add python-url., David Craven, 2016/08/22
- [PATCH 09/11] gnu: Add python-publicsuffix2., David Craven, 2016/08/22
- [PATCH 02/11] gnu: python: Import guix licenses with #:prefix license:., David Craven, 2016/08/22
- Re: [PATCH 02/11] gnu: python: Import guix licenses with #:prefix license:., David Craven, 2016/08/26
- [PATCH 11/11] gnu: Add python-ipaddress., David Craven, 2016/08/22
[PATCH 08/12] gnu: python: Add python-schematics., David Craven, 2016/08/05
[PATCH 03/12] gnu: python: Import guix licenses with #:prefix license:., David Craven, 2016/08/05
[PATCH 06/12] gnu: python: Add python-pymongo., David Craven, 2016/08/05