guix-commits
[Top][All Lists]
Advanced

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

01/02: gnu: Add python-future.


From: Ben Woodcroft
Subject: 01/02: gnu: Add python-future.
Date: Sat, 6 Aug 2016 05:48:17 +0000 (UTC)

benwoodcroft pushed a commit to branch master
in repository guix.

commit da4ac1aaa44ef6a68756fe35d15182c8228d6099
Author: Ben Woodcroft <address@hidden>
Date:   Mon Apr 11 21:18:37 2016 +1000

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

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 470bad8..5fdf68e 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -8864,6 +8864,38 @@ development version of CPython that are not available in 
older releases.")
                     (lambda _ (zero? (system* "python"
                                               "test_bz2file.py"))))))))))
 
+(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)
+    ;; Many tests connect to the network or are otherwise flawed.
+    ;; https://github.com/PythonCharmers/python-future/issues/210
+    (arguments
+     `(#:tests? #f))
+    (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")



reply via email to

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