[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 10/16] gnu: Add python-graphene.
From: |
Efraim Flashner |
Subject: |
[PATCH 10/16] gnu: Add python-graphene. |
Date: |
Sun, 11 Sep 2016 21:58:51 +0300 |
* gnu/packages/python.scm (python-graphene): New variable.
---
gnu/packages/python.scm | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 7effc67..5ab8ed1 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -10608,3 +10608,45 @@ from Facebook.")
(native-inputs
`(("python2-setuptools" ,python2-setuptools)
,@(package-native-inputs base))))))
+
+(define-public python-graphene
+ (package
+ (name "python-graphene")
+ (version "0.10.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "graphene" version))
+ (sha256
+ (base32
+ "09zhac7igh9ixdz0ay6csy35b40l1jwbf2wrbxmgxwfhy51iy06q"))))
+ (build-system python-build-system)
+ (native-inputs
+ `(("python-django-filter" ,python-django-filter)
+ ("python-mock" ,python-mock)
+ ("python-psycopg2" ,python-psycopg2)
+ ("python-pytest-django" ,python-pytest-django)
+ ("python-sqlalchemy-utils" ,python-sqlalchemy-utils)))
+ (inputs
+ `(("python-graphql-core" ,python-graphql-core)
+ ("python-graphql-relay" ,python-graphql-relay)
+ ("python-iso8601" ,python-iso8601)
+ ("python-promise" ,python-promise)
+ ("python-six" ,python-six)))
+ (home-page "http://graphene-python.org/")
+ (synopsis "GraphQL Framework for Python")
+ (description
+ "Graphene is a Python library for building GraphQL schemas/types.
+A GraphQL schema describes your data model, and provides a GraphQL server
+with an associated set of resolve methods that know how to fetch data.")
+ (properties `((python2-variant . ,(delay python2-graphene))))
+ (license license:expat)))
+
+(define-public python2-graphene
+ (let ((base (package-with-python2
+ (strip-python2-variant python-graphene))))
+ (package (inherit base)
+ (native-inputs
+ `(("python2-setuptools" ,python2-setuptools)
+ ("python2-sqlalchemy" ,python2-sqlalchemy)
+ ,@(package-native-inputs base))))))
--
2.10.0
- [PATCH 05/16] gnu: Add python-graphql-core., (continued)
- [PATCH 05/16] gnu: Add python-graphql-core., Efraim Flashner, 2016/09/11
- [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 <=
- [PATCH 14/16] gnu: Add python-bcrypt., Efraim Flashner, 2016/09/11
- [PATCH 15/16] gnu: Add python-nautilus., Efraim Flashner, 2016/09/11
- [PATCH 16/16] gnu: Add onionshare., Efraim Flashner, 2016/09/11
- Re: [PATCH 00/16] Add onionshare, Efraim Flashner, 2016/09/11