Patchwork [10/18] gnu: Add python-urlobject.

login
register
mail settings
Submitter ng0
Date Oct. 2, 2016, 11 a.m.
Message ID <20161002110054.2297-11-ngillmann@runbox.com>
Download mbox | patch
Permalink /patch/16187/
State New
Headers show

Comments

ng0 - Oct. 2, 2016, 11 a.m.
* gnu/packages/python.scm (python-urlobject): New variable.
---
 gnu/packages/python.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

Patch

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 3009cd8..a5de01e 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -1636,6 +1636,30 @@  standard library.")
      `(#:python ,python-2
        #:tests? #f)))) ; no setup.py test command
 
+(define-public python-urlobject
+  (package
+    (name "python-urlobject")
+    (version "2.4.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "URLObject" version))
+       (sha256
+        (base32
+         "0mswa40s1m5hs5yydb75i2bqb0l49gn0mmkzb0g5nj493nl0h3yx"))))
+    (build-system python-build-system)
+    (home-page "http://github.com/zacharyvoase/urlobject")
+    (synopsis "Utility class for manipulating URLs")
+    (description
+     "URLObject is a utility class for manipulating URLs.")
+    (license license:public-domain)))
+
+(define-public python2-urlobject
+  (let ((base (package-with-python2 (strip-python2-variant python-urlobject))))
+    (package
+      (inherit base)
+      (inputs `(("python2-setuptools" ,python2-setuptools))))))
+
 (define-public python-py
   (package
     (name "python-py")