[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
08/11: gnu: Add python-publicsuffix.
From: |
David Craven |
Subject: |
08/11: gnu: Add python-publicsuffix. |
Date: |
Sun, 28 Aug 2016 12:20:28 +0000 (UTC) |
dvc pushed a commit to branch master
in repository guix.
commit d6907ff75ff9a037fc4728e41c3a267c1cf73466
Author: David Craven <address@hidden>
Date: Fri Aug 5 19:31:57 2016 +0200
gnu: Add python-publicsuffix.
* 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 bab19b3..af7b116 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -10135,3 +10135,30 @@ interface for programs.")
(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))))))
- branch master updated (1ae27aa -> 520af15), David Craven, 2016/08/28
- 03/11: gnu: Add python-binaryornot., David Craven, 2016/08/28
- 07/11: gnu: Add python-schematics., David Craven, 2016/08/28
- 10/11: gnu: Add python-url., David Craven, 2016/08/28
- 11/11: gnu: python-ipaddress: Update to 1.0.16., David Craven, 2016/08/28
- 04/11: gnu: Add python-nltk., David Craven, 2016/08/28
- 08/11: gnu: Add python-publicsuffix.,
David Craven <=
- 09/11: gnu: Add python-publicsuffix2., David Craven, 2016/08/28
- 05/11: gnu: Add python-pymongo., David Craven, 2016/08/28
- 01/11: import: Importers return prefixed licenses., David Craven, 2016/08/28
- 06/11: gnu: Add python-sh., David Craven, 2016/08/28
- 02/11: gnu: python: Import guix licenses with #:prefix license:., David Craven, 2016/08/28