~ruther/guix-local

c661878fc76450596bc64a9ae0ec1461230dc079 — Nicolas Graves 6 months ago 5f3e41a
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 <sharlatanus@gmail.com>
1 files changed, 16 insertions(+), 23 deletions(-)

M gnu/packages/python-xyz.scm
M gnu/packages/python-xyz.scm => gnu/packages/python-xyz.scm +16 -23
@@ 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