aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/python.scm
diff options
context:
space:
mode:
authorDavid Craven <david@craven.ch>2016-08-05 19:33:09 +0200
committerDavid Craven <david@craven.ch>2016-08-28 14:04:54 +0200
commitb2319996dc84dfcb3a87cdc1653f40c2e8de6502 (patch)
tree180df9595e3b1b367fabc8d377d2b8c6560fa096 /gnu/packages/python.scm
parentd6907ff75ff9a037fc4728e41c3a267c1cf73466 (diff)
downloadguix-b2319996dc84dfcb3a87cdc1653f40c2e8de6502.tar
guix-b2319996dc84dfcb3a87cdc1653f40c2e8de6502.tar.gz
gnu: Add python-publicsuffix2.
* gnu/packages/python.scm (python-publicsuffix2): New variable. (python2-publicsuffix2): New variable.
Diffstat (limited to 'gnu/packages/python.scm')
-rw-r--r--gnu/packages/python.scm26
1 files changed, 26 insertions, 0 deletions
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index af7b116d4a..d0832fff94 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -10162,3 +10162,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))))))