guix_mirror_bot pushed a commit to branch master
in repository guix.

commit c661878fc76450596bc64a9ae0ec1461230dc079
Author: Nicolas Graves <[email protected]>
AuthorDate: Sat Oct 25 15:38:24 2025 +0200

    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 <[email protected]>
---
 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 2d47140763..53fb98e5ac 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

Reply via email to