[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/16: gnu: Add python-promise.
From: |
Efraim Flashner |
Subject: |
03/16: gnu: Add python-promise. |
Date: |
Sun, 18 Sep 2016 20:19:58 +0000 (UTC) |
efraim pushed a commit to branch master
in repository guix.
commit 5cb2fe446bf3357e3320bfd5c00ccfac131cd4fd
Author: Efraim Flashner <address@hidden>
Date: Sun Sep 11 21:24:25 2016 +0300
gnu: Add python-promise.
* gnu/packages/python.scm (python-promise): New variable.
---
gnu/packages/python.scm | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 055e6e2..86d099a 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -7442,6 +7442,40 @@ asynchronously executing callables. This package
backports the
concurrent.futures package from Python 3.2")
(license license:bsd-3)))
+(define-public python-promise
+ (package
+ (name "python-promise")
+ (version "0.4.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "promise" version))
+ (sha256
+ (base32
+ "1k19ms8l3d5jzjh557rgkxb5sg4mqgfc315rn4hx1z3n8qq6lr3h"))))
+ (build-system python-build-system)
+ ;; Tests wants python-futures, which is a python2 only program, and
+ ;; can't be found by python-promise at test time.
+ (arguments `(#:tests? #f))
+ (home-page "https://github.com/syrusakbary/promise")
+ (synopsis "Promises/A+ implementation for Python")
+ (description
+ "Promises/A+ implementation for Python")
+ (properties `((python2-variant . ,(delay python2-promise))))
+ (license license:expat)))
+
+(define-public python2-promise
+ (let ((promise (package-with-python2
+ (strip-python2-variant python-promise))))
+ (package (inherit promise)
+ (arguments (substitute-keyword-arguments (package-arguments promise)
+ ((#:tests? _) #t)))
+ (native-inputs
+ `(("python2-futures" ,python2-futures)
+ ("python2-pytest" ,python2-pytest)
+ ("python2-setuptools" ,python2-setuptools)
+ ,@(package-native-inputs promise))))))
+
(define-public python-urllib3
(package
(name "python-urllib3")
- branch master updated (bff8be8 -> b8ea520), Efraim Flashner, 2016/09/18
- 05/16: gnu: Add python-graphql-core., Efraim Flashner, 2016/09/18
- 14/16: gnu: Add python-bcrypt., Efraim Flashner, 2016/09/18
- 01/16: gnu: Add python-pika., Efraim Flashner, 2016/09/18
- 09/16: gnu: Add python-django-filter., Efraim Flashner, 2016/09/18
- 02/16: gnu: Add python-peewee., Efraim Flashner, 2016/09/18
- 06/16: gnu: Add python-graphql-relay., Efraim Flashner, 2016/09/18
- 04/16: gnu: Add python-pytest-mock., Efraim Flashner, 2016/09/18
- 16/16: gnu: Add onionshare., Efraim Flashner, 2016/09/18
- 03/16: gnu: Add python-promise.,
Efraim Flashner <=
- 11/16: gnu: Add python-consul., Efraim Flashner, 2016/09/18
- 08/16: gnu: Add python-pytest-django., Efraim Flashner, 2016/09/18
- 13/16: gnu: Add python-nose2., Efraim Flashner, 2016/09/18
- 07/16: gnu: Add python-sqlalchemy-utils., Efraim Flashner, 2016/09/18
- 15/16: gnu: Add python-nautilus., Efraim Flashner, 2016/09/18
- 10/16: gnu: Add python-graphene., Efraim Flashner, 2016/09/18
- 12/16: gnu: Add python-cov-core., Efraim Flashner, 2016/09/18