summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2026-01-19 03:40:20 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2026-03-20 15:01:51 +0000
commit697471d209fdb644e57ce220827ad4f4827b624c (patch)
tree0cbff7ea8c87abf57b385e23ff33715ef731911c /gnu
parentfc6837626eb9de47f02f1eca3bd095c92bb72611 (diff)
gnu: python-graphql-core: Update to 3.2.7.
* gnu/packages/python-xyz.scm (python-graphql-core): Update to 3.2.7. [source]: Switch to git-fetch. [arguments]: Drop them. Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/python-xyz.scm41
1 files changed, 9 insertions, 32 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 96d2ced15cd..5d914e907e7 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -23098,40 +23098,17 @@ numbers, real numbers, mixed types and more, and comes with a shell command
(define-public python-graphql-core
(package
(name "python-graphql-core")
- (version "3.1.2")
+ (version "3.2.7")
(source
- (origin
- (method url-fetch)
- (uri (pypi-uri "graphql-core" version))
- (sha256
- (base32
- "0fjv5w2wvgdr8gb27v241bavliipyir9fdz48rsgc3xapm644mn0"))))
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/graphql-python/graphql-core")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1jq23vm7lvy6h7rrhfa9iss50vh5anmk0n8kvdbqgrxnzqak43va"))))
(build-system pyproject-build-system)
- (arguments
- (list
- #:phases
- '(modify-phases %standard-phases
- (add-after 'unpack 'use-poetry-core
- (lambda _
- ;; Patch to use the core poetry API.
- (substitute* "pyproject.toml"
- (("poetry.masonry.api")
- "poetry.core.masonry.api")
- ;; Poetry does not like line breaks.
- (("description = \"\"\"")
- "description = \"GraphQL-core is a Python port of GraphQL.js.\"\n")
- (("^GraphQL-core is a Python.*") "")
- (("^ the JavaScript reference.*") ""))))
- (add-after 'unpack 'patch-setup.py
- (lambda _
- (substitute* "setup.py"
- ;; Relax hardcoded version
- (("'gevent==1.1rc1'") "'gevent'")
- ;; Poetry complains about this line break.
- (("a port of GraphQL.js,\"")
- (string-append "a port of GraphQL.js, "
- "the JavaScript reference implementation for GraphQL."))
- ((" \" the JavaScript reference.*") "")))))))
(native-inputs
(list python-gevent
python-mock