[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
111/361: gnu: python-graphql-core: Enable tests.
From: |
guix-commits |
Subject: |
111/361: gnu: python-graphql-core: Enable tests. |
Date: |
Thu, 21 Nov 2024 06:29:00 -0500 (EST) |
sharlatan pushed a commit to branch python-team
in repository guix.
commit 07825400f2d957d41bf57b3ea5c84b2f31540d6c
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Wed May 8 10:03:43 2024 +0200
gnu: python-graphql-core: Enable tests.
* gnu/packages/python-xyz.scm (python-graphql-core)[build-system]: Use
pyproject-build-system.
[arguments]: Enable tests; add phases 'use-poetry-core and 'patch-setup.py.
[native-inputs]: Add python-poetry-core, python-pytest, and
python-pytest-benchmark.
Change-Id: I519966ca0da38339981a17d830ecac786b36cfb3
---
gnu/packages/python-xyz.scm | 43 ++++++++++++++++++++++++++++++++-----------
1 file changed, 32 insertions(+), 11 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index eff0522aad..a1ff957694 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -23662,18 +23662,39 @@ numbers, real numbers, mixed types and more, and
comes with a shell command
(sha256
(base32
"0fjv5w2wvgdr8gb27v241bavliipyir9fdz48rsgc3xapm644mn0"))))
- (build-system python-build-system)
+ (build-system pyproject-build-system)
(arguments
- `(#:tests? #f ; Tests require the unpackaged pytest-benchmark.
- #:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'patch-hardcoded-version
- (lambda _ (substitute*
- "setup.py"
- (("'gevent==1.1rc1'") "'gevent'"))
- #t)))))
- (native-inputs
- (list python-gevent python-mock python-pytest-mock))
+ (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
+ python-poetry-core
+ python-pytest
+ python-pytest-benchmark
+ python-pytest-mock))
(propagated-inputs
(list python-promise python-six))
(home-page "https://github.com/graphql-python/graphql-core")
- 69/361: gnu: Add python-uri-template., (continued)
- 69/361: gnu: Add python-uri-template., guix-commits, 2024/11/21
- 64/361: gnu: Add python-pep440., guix-commits, 2024/11/21
- 57/361: gnu: snakemake-6: Add Setuptools and Wheel., guix-commits, 2024/11/21
- 61/361: gnu: python-nbclient: Add Setuptools and Wheel., guix-commits, 2024/11/21
- 93/361: gnu: python-json-logger: Update to 2.0.7., guix-commits, 2024/11/21
- 82/361: gnu: python-prometheus-client: Update to 0.20.0., guix-commits, 2024/11/21
- 94/361: gnu: python-jsonpointer: Update to 1.14., guix-commits, 2024/11/21
- 98/361: gnu: python-jupyter-server: Update to 2.14.0., guix-commits, 2024/11/21
- 110/361: gnu: python-openapi-core: Update to 0.19.1., guix-commits, 2024/11/21
- 118/361: gnu: Add python-pytoolconfig., guix-commits, 2024/11/21
- 111/361: gnu: python-graphql-core: Enable tests.,
guix-commits <=
- 131/361: gnu: python-widgetsnbextension: Update to 4.0.10., guix-commits, 2024/11/21
- 121/361: gnu: python-rope: Update to 1.13.0., guix-commits, 2024/11/21
- 124/361: gnu: python-nbclient: Update to 0.10.0., guix-commits, 2024/11/21
- 113/361: gnu: python-jupyterlab-server: Update to 2.27.1., guix-commits, 2024/11/21
- 116/361: gnu: Add python-sphinxext-rediraffe., guix-commits, 2024/11/21
- 127/361: gnu: python-pyls-black: Add missing input., guix-commits, 2024/11/21
- 117/361: gnu: repo2docker: Update to 2024.03.0., guix-commits, 2024/11/21
- 142/361: gnu: python-http-ece: Update to 1.2.0., guix-commits, 2024/11/21
- 123/361: gnu: python-lsp-server: Update to 1.11.0., guix-commits, 2024/11/21
- 148/361: gnu: Add xcffibgen., guix-commits, 2024/11/21