1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-06 21:20:33 +02:00

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>
This commit is contained in:
Nicolas Graves
2026-01-19 03:40:20 +01:00
committed by Sharlatan Hellseher
parent fc6837626e
commit 697471d209

View File

@@ -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