guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v2 05/10] gnu: Add python-future.


From: Ben Woodcroft
Subject: [PATCH v2 05/10] gnu: Add python-future.
Date: Sun, 24 Apr 2016 23:06:19 +1000

* gnu/packages/python.scm (python-future, python2-future): New
variables.
---
 gnu/packages/python.scm | 32 +++++++++++++++++++++++++++++++-
 1 file changed, 31 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 4175fad..28eebf1 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -8812,13 +8812,43 @@ command line arguments.")
 
 (define-public python2-pytest-flakes
   (let ((base (package-with-python2
-                 (strip-python2-variant python-pytest-flakes))))
+               (strip-python2-variant python-pytest-flakes))))
     (package
       (inherit base)
       (native-inputs
        `(,@(package-native-inputs base)
          ("python2-setuptools" ,python2-setuptools))))))
 
+(define-public python-future
+  (package
+    (name "python-future")
+    (version "0.15.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "future" version))
+       (sha256
+        (base32
+         "15wvcfzssc68xqnqi1dq4fhd0848hwi9jn42hxyvlqna40zijfrx"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:tests? #f)) ; Tests connect to the network
+    (home-page "http://python-future.org";)
+    (synopsis "Single-source support for Python 3 and 2")
+    (description
+     "@code{python-future} is the missing compatibility layer between Python 2 
and
+Python 3.  It allows you to use a single, clean Python 3.x-compatible codebase
+to support both Python 2 and Python 3 with minimal overhead.")
+    (license license:expat)
+    (properties `((python2-variant . ,(delay python2-future))))))
+
+(define-public python2-future
+  (let ((base (package-with-python2
+               (strip-python2-variant python-future))))
+    (package
+      (inherit base)
+      (native-inputs `(("python2-setuptools" ,python2-setuptools))))))
+
 (define-public python-cysignals
   (package
     (name "python-cysignals")
-- 
2.5.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]