From c661878fc76450596bc64a9ae0ec1461230dc079 Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Sat, 25 Oct 2025 15:38:24 +0200 Subject: [PATCH] gnu: python-graphql-relay: Switch to pyproject. * gnu/packages/python-xyz.scm (python-graphql-relay): [source]: Switch to git-fetch. [build-system]: Switch to pyproject-build-system. [native-inputs]: Add python-poetry-core. [description]: Improve style. Change-Id: I41ac3412bf04646aeb3cabe0ec540b59985d2c0f Signed-off-by: Sharlatan Hellseher --- gnu/packages/python-xyz.scm | 39 +++++++++++++++---------------------- 1 file changed, 16 insertions(+), 23 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 2d47140763f1e8f3f009b0b241478be7a86a895b..53fb98e5aca7c11ee456b10508e7a0b21b4c2912 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -23229,34 +23229,27 @@ numbers, real numbers, mixed types and more, and comes with a shell command (name "python-graphql-relay") (version "3.1.0") (source - (origin - (method url-fetch) - (uri (pypi-uri "graphql-relay" version)) - (sha256 - (base32 - "1d70vwam9gjhx7fqzsa03x7lc6ivcqki5r9pk8m7rslmb7pagmbh")))) - (build-system python-build-system) - (arguments - '(#:phases - (modify-phases %standard-phases - (replace 'check - (lambda* (#:key tests? #:allow-other-keys) - (when tests? - (invoke "pytest" "tests"))))))) + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/graphql-python/graphql-relay-py") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "06ybi4bwqdffa5kn8xnns06wh3l0zj3qlzrxk1wpxqq320hyzx9x")))) + (build-system pyproject-build-system) + (arguments (list #:test-flags #~(list "tests"))) (native-inputs - (list - python-pytest - python-pytest-asyncio)) - (propagated-inputs - (list python-graphql-core)) + (list python-pytest python-pytest-asyncio python-poetry-core)) + (propagated-inputs (list python-graphql-core)) (home-page "https://github.com/graphql-python/graphql-relay-py") (synopsis "Relay implementation for Python") (description "This is a library to allow the easy creation of Relay-compliant servers - using the GraphQL Python reference implementation of a GraphQL server. It - should be noted that the code is a exact port of the original - @url{https://github.com/graphql/graphql-relay-js,graphql-relay js implementation} - from Facebook.") +using the GraphQL Python reference implementation of a GraphQL server. It +should be noted that the code is a exact port of the original +@url{https://github.com/graphql/graphql-relay-js,graphql-relay js +implementation} from Facebook.") (license license:expat))) (define-public python-graphene