summary refs log tree commit diff
path: root/gnu/packages/python.scm
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2016-04-10 20:07:57 +0300
committerEfraim Flashner <efraim@flashner.co.il>2016-04-10 20:07:57 +0300
commiteebf6f01e49a8ad4c8b7eec26ffbaf8a0e7185a2 (patch)
tree7e9ab6989442ffb17971aecce5cca0b52394d98c /gnu/packages/python.scm
parent394b8060b187aa55810e285382a97c01c17dcfe6 (diff)
downloadguix-eebf6f01e49a8ad4c8b7eec26ffbaf8a0e7185a2.tar.gz
gnu: python-parsedatetime: Update to 2.1.
* gnu/packages/python.scm (parsedatetime): Update to 2.1.
[native-inputs]: Remove python-setuptools, add python-nose, python-pyicu.
[properties]: Define python2-variant.
(python2-parsedatetime): Build with 'strip-python2-variant'.
[native-inputs]: Add python2-setuptools.
Diffstat (limited to 'gnu/packages/python.scm')
-rw-r--r--gnu/packages/python.scm19
1 files changed, 12 insertions, 7 deletions
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 9b874320a2..afb5181157 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -951,27 +951,32 @@ datetime module, available in Python 2.3+.")
 (define-public python-parsedatetime
   (package
     (name "python-parsedatetime")
-    (version "1.5")
+    (version "2.1")
     (source
      (origin
       (method url-fetch)
-      (uri (string-append "https://pypi.python.org/packages/source/p/"
-                          "parsedatetime/parsedatetime-" version ".tar.gz"))
+      (uri (pypi-uri "parsedatetime" version))
       (sha256
        (base32
-        "1as0mm4ql3z0324nc9bys2s1ngh507i317p16b79rx86wlmvx9ix"))))
+        "0bdgyw6y3v7bcxlx0p50s8drxsh5bb5cy2afccqr3j90amvpii8p"))))
     (build-system python-build-system)
     (native-inputs
-     `(("python-setuptools" ,python-setuptools)))
+     `(("python-nose" ,python-nose)
+       ("python-pyicu" ,python-pyicu)))
     (home-page "http://github.com/bear/parsedatetime/")
     (synopsis
      "Parse human-readable date/time text")
     (description
      "Parse human-readable date/time text.")
-    (license asl2.0)))
+    (license asl2.0)
+    (properties `((python2-variant . ,(delay python2-parsedatetime))))))
 
 (define-public python2-parsedatetime
-  (package-with-python2 python-parsedatetime))
+  (let ((base (package-with-python2 (strip-python2-variant python-parsedatetime))))
+    (package
+      (inherit base)
+      (native-inputs `(("python2-setuptools" ,python2-setuptools)
+                       ,@(package-native-inputs base))))))
 
 (define-public python-pandas
   (package