[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 05/16] gnu: Add python-graphql-core.
From: |
Efraim Flashner |
Subject: |
[PATCH 05/16] gnu: Add python-graphql-core. |
Date: |
Sun, 11 Sep 2016 21:58:46 +0300 |
* gnu/packages/python.scm (python-graphql-core): New variable.
---
gnu/packages/python.scm | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 0886c4f..a4493c5 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -10425,3 +10425,48 @@ Python to manipulate OpenDocument 1.2 files.")
(native-inputs
`(("python2-setuptools" ,python2-setuptools)
,@(package-native-inputs base))))))
+
+(define-public python-graphql-core
+ (package
+ (name "python-graphql-core")
+ (version "0.5.3")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "graphql-core" version))
+ (sha256
+ (base32
+ "0rsaarx2sj4xnw9966rhh4haiqaapm4lm2mfqm48ywd51j5vh1a0"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'patch-hardcoded-version
+ (lambda _ (substitute*
+ "setup.py"
+ (("'gevent==1.1rc1'") "'gevent'"))
+ #t)))))
+ (native-inputs
+ `(("python-gevent" ,python-gevent)
+ ("python-mock" ,python-mock)
+ ("python-pytest-mock" ,python-pytest-mock)))
+ (inputs
+ `(("python-promise" ,python-promise)
+ ("python-six" ,python-six)))
+ (home-page "https://github.com/graphql-python/graphql-core")
+ (synopsis "GraphQL implementation for Python")
+ (description
+ "GraphQL implementation for Python. GraphQL is a data query language and
+runtime designed and used to request and deliver data to mobile and web apps.
+This library is a port of
@url{https://github.com/graphql/graphql-js,graphql-js}
+to Python.")
+ (properties `((python2-variant . ,(delay python2-graphql-core))))
+ (license license:expat)))
+
+(define-public python2-graphql-core
+ (let ((base (package-with-python2
+ (strip-python2-variant python-graphql-core))))
+ (package (inherit base)
+ (native-inputs
+ `(("python2-setuptools" ,python2-setuptools)
+ ,@(package-native-inputs base))))))
--
2.10.0
- Re: [PATCH 01/16] gnu: Add python-pika., (continued)
[PATCH 02/16] gnu: Add python-peewee., Efraim Flashner, 2016/09/11
[PATCH 03/16] gnu: Add python-promise., Efraim Flashner, 2016/09/11
[PATCH 04/16] gnu: Add python-pytest-mock., Efraim Flashner, 2016/09/11
[PATCH 05/16] gnu: Add python-graphql-core.,
Efraim Flashner <=
[PATCH 06/16] gnu: Add python-graphql-relay., Efraim Flashner, 2016/09/11
[PATCH 07/16] gnu: Add python-sqlalchemy-utils., Efraim Flashner, 2016/09/11
[PATCH 12/16] gnu: Add python-cov-core., Efraim Flashner, 2016/09/11
[PATCH 08/16] gnu: Add python-pytest-django., Efraim Flashner, 2016/09/11
[PATCH 13/16] gnu: Add python-nose2., Efraim Flashner, 2016/09/11
[PATCH 09/16] gnu: Add python-django-filter., Efraim Flashner, 2016/09/11
[PATCH 11/16] gnu: Add python-consul., Efraim Flashner, 2016/09/11
[PATCH 10/16] gnu: Add python-graphene., Efraim Flashner, 2016/09/11