diff options
author | David Craven <david@craven.ch> | 2016-08-05 19:31:57 +0200 |
---|---|---|
committer | David Craven <david@craven.ch> | 2016-08-28 14:04:54 +0200 |
commit | d6907ff75ff9a037fc4728e41c3a267c1cf73466 (patch) | |
tree | 191580769f768b702e53baf426190eb591879159 /gnu | |
parent | 05b59190df900913bfe5f141cc7ff1252219bfeb (diff) | |
download | guix-d6907ff75ff9a037fc4728e41c3a267c1cf73466.tar guix-d6907ff75ff9a037fc4728e41c3a267c1cf73466.tar.gz |
gnu: Add python-publicsuffix.
* gnu/packages/python.scm (python-publicsuffix): New variable.
(python2-publicsuffix): New variable.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/python.scm | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index bab19b338e..af7b116d4a 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)))))) |