From 432abeb5907f25abd672be464c37eaf0a5dde52d Mon Sep 17 00:00:00 2001 From: ng0 Date: Fri, 23 Sep 2016 15:24:06 +0000 Subject: [PATCH 10/18] gnu: Add python-urlobject. * gnu/packages/python.scm (python-urlobject): New variable. --- gnu/packages/python.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) 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") -- 2.10.0