[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 10/11] gnu: Add python-url.
From: |
David Craven |
Subject: |
[PATCH 10/11] gnu: Add python-url. |
Date: |
Mon, 22 Aug 2016 15:20:17 +0200 |
* gnu/packages/python.scm (python-url): New variable.
(python2-url): New variable.
---
gnu/packages/python.scm | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 72b3c64..40d10e2 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -10173,3 +10173,36 @@ List. Forked from and using the same API as the
publicsuffix package.")
(native-inputs
`(("python2-setuptools" ,python2-setuptools)
,@(package-native-inputs base))))))
+
+(define-public python-url
+ (package
+ (name "python-url")
+ (version "0.2.0")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "url" version))
+ (sha256
+ (base32
+ "0v879yadcz9qxfl41ak6wkga1kimp9cflla9ddz03hjjvgkqy5ki"))))
+ (build-system python-build-system)
+ (inputs
+ `(("python-publicsuffix" ,python-publicsuffix)))
+ (native-inputs
+ `(("python-coverage" ,python-coverage)
+ ("python-nose" ,python-nose)))
+ (arguments
+ `(#:tests? #f)) ; FIXME: tests fail with "ImportError: No module named
'tests'"
+ (home-page "http://github.com/seomoz/url-py")
+ (synopsis "URL Parsing")
+ (description "URL Parsing.")
+ (license license:expat)
+ (properties `((python2-variant . ,(delay python2-url))))))
+
+(define-public python2-url
+ (let ((base (package-with-python2 (strip-python2-variant python-url))))
+ (package (inherit base)
+ (inputs
+ `(("python2-publicsuffix" ,python2-publicsuffix)))
+ (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
- [PATCH 03/11] gnu: Add python-binaryornot., David Craven, 2016/08/22
- [PATCH 04/11] gnu: Add python-nltk., David Craven, 2016/08/22
- [PATCH 08/11] gnu: Add python-publicsuffix., David Craven, 2016/08/22
- [PATCH 07/11] gnu: Add python-schematics., David Craven, 2016/08/22
- [PATCH 10/11] gnu: Add python-url.,
David Craven <=
- [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
[PATCH 05/12] gnu: python: Add python-nltk., David Craven, 2016/08/05