Subject: bug#25733: [PATCH 10/18] gnu: Add python-urlobject.

From: [email-masked]
Date: Tue, 14 Feb 2017 20:15:55 +0000

From: ng0 <[email-masked]>

* gnu/packages/python.scm (python-urlobject): New variable.
---
 gnu/packages/python.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 7c02f86f1..189720b0a 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -1797,6 +1797,29 @@ standard library.")
      "@code{pafy} is a python library to retrieve YouTube content and metadata.")
     (license license:lgpl3+)))
 
+(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))))
+
 (define-public python-py
   (package
     (name "python-py")
-- 
2.11.1