From patchwork Sun Sep 11 18:58:46 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Efraim Flashner X-Patchwork-Id: 15517 Received: (qmail 112920 invoked by uid 89); 11 Sep 2016 19:00:29 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.99.2 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.9 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 spammy=H*r:sk:dynamic, mobile X-Spam-Status: No, score=-2.9 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on sourceware.org X-Spam-Level: X-HELO: lists.gnu.org Received: from lists.gnu.org (HELO lists.gnu.org) (208.118.235.17) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 11 Sep 2016 19:00:18 +0000 Received: from localhost ([::1]:38729 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bj9zA-0003iT-7a for patchwork@sourceware.org; Sun, 11 Sep 2016 15:00:12 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50212) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bj9yF-00032J-O5 for guix-devel@gnu.org; Sun, 11 Sep 2016 14:59:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bj9yD-00089l-OE for guix-devel@gnu.org; Sun, 11 Sep 2016 14:59:14 -0400 Received: from flashner.co.il ([178.62.234.194]:52852) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bj9yD-00085w-H8 for guix-devel@gnu.org; Sun, 11 Sep 2016 14:59:13 -0400 Received: from localhost (85.64.232.168.dynamic.barak-online.net [85.64.232.168]) by flashner.co.il (Postfix) with ESMTPSA id 5CC4640813 for ; Sun, 11 Sep 2016 18:59:05 +0000 (UTC) From: Efraim Flashner To: guix-devel@gnu.org Subject: [PATCH 05/16] gnu: Add python-graphql-core. Date: Sun, 11 Sep 2016 21:58:46 +0300 Message-Id: <20160911185857.2123-6-efraim@flashner.co.il> X-Mailer: git-send-email 2.10.0 In-Reply-To: <20160911185857.2123-1-efraim@flashner.co.il> References: <20160911185857.2123-1-efraim@flashner.co.il> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 178.62.234.194 X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+patchwork=sourceware.org@gnu.org Sender: "Guix-devel" * 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))))))