diff options
author | David Craven <david@craven.ch> | 2016-08-05 19:33:09 +0200 |
---|---|---|
committer | David Craven <david@craven.ch> | 2016-08-28 14:04:54 +0200 |
commit | b2319996dc84dfcb3a87cdc1653f40c2e8de6502 (patch) | |
tree | 180df9595e3b1b367fabc8d377d2b8c6560fa096 /gnu/packages/python.scm | |
parent | d6907ff75ff9a037fc4728e41c3a267c1cf73466 (diff) | |
download | guix-patches-b2319996dc84dfcb3a87cdc1653f40c2e8de6502.tar guix-patches-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.scm | 26 |
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)))))) |