[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 05/10] gnu: Add python-future.
From: |
Ben Woodcroft |
Subject: |
[PATCH 05/10] gnu: Add python-future. |
Date: |
Thu, 21 Apr 2016 23:21:56 +1000 |
* gnu/packages/python.scm (python-future, python2-future): New
variables.
---
gnu/packages/python.scm | 35 ++++++++++++++++++++++++++++++++++-
1 file changed, 34 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 28b1ee0..54c3202 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -8833,13 +8833,46 @@ 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 (string-append
+ "https://pypi.python.org/packages/source/f/future/future-"
+ version
+ ".tar.gz"))
+ (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
- [PATCH] Add python-scikit-bio., Ben Woodcroft, 2016/04/21
- [PATCH 03/10] gnu: Add python-pytest-pep8., Ben Woodcroft, 2016/04/21
- [PATCH 02/10] gnu: Add python-bz2file., Ben Woodcroft, 2016/04/21
- [PATCH 01/10] gnu: Add python2-pytest-cache., Ben Woodcroft, 2016/04/21
- [PATCH 05/10] gnu: Add python-future.,
Ben Woodcroft <=
- [PATCH 07/10] gnu: python-tornado: Use 'python2-variant'., Ben Woodcroft, 2016/04/21
- [PATCH 08/10] gnu: python-ipython: Use 'python2-variant'., Ben Woodcroft, 2016/04/21
- [PATCH 09/10] gnu: Add python-natsort., Ben Woodcroft, 2016/04/21
- [PATCH 10/10] gnu: Add python-scikit-bio., Ben Woodcroft, 2016/04/21