[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
80/195: gnu: python-graphql-core: Enable tests.
From: |
guix-commits |
Subject: |
80/195: gnu: python-graphql-core: Enable tests. |
Date: |
Tue, 15 Oct 2024 03:29:47 -0400 (EDT) |
sharlatan pushed a commit to branch python-team-rebased
in repository guix.
commit e5a3cde6460fe7d50a6cdca7c776cb3cec01f690
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 af4b618cab..08e6ef3d6f 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -23358,18 +23358,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")
- 54/195: gnu: python-pyzmq: Use Tornado 6., (continued)
- 54/195: gnu: python-pyzmq: Use Tornado 6., guix-commits, 2024/10/15
- 56/195: gnu: python-jupyter-client: Set environment variable., guix-commits, 2024/10/15
- 57/195: gnu: python-ipykernel: Set environment variable., guix-commits, 2024/10/15
- 60/195: gnu: python-trio: Use pyproject-build-system., guix-commits, 2024/10/15
- 64/195: gnu: python-notebook: Update to 6.5.7., guix-commits, 2024/10/15
- 68/195: gnu: python-jupyter-server-mathjax: Update to 0.2.6., guix-commits, 2024/10/15
- 66/195: gnu: Add python-jupyter-server-terminals., guix-commits, 2024/10/15
- 75/195: gnu: Add python-pathable., guix-commits, 2024/10/15
- 74/195: gnu: python-sparqlkernel: Patch install script., guix-commits, 2024/10/15
- 73/195: gnu: python-requests: Update to 2.31.0., guix-commits, 2024/10/15
- 80/195: gnu: python-graphql-core: Enable tests.,
guix-commits <=
- 84/195: gnu: python-myst-parser: Update to 3.0.1., guix-commits, 2024/10/15
- 85/195: gnu: Add python-sphinxext-rediraffe., guix-commits, 2024/10/15
- 91/195: gnu: python-rope: Update to 1.13.0., guix-commits, 2024/10/15
- 98/195: gnu: python-sphinx-4: Inherit from python-sphinx-5., guix-commits, 2024/10/15
- 115/195: gnu: python-zope-i18nmessageid: Update to 5.1.1., guix-commits, 2024/10/15
- 106/195: gnu: python-jupyterlab-widgets: Update to 3.0.10., guix-commits, 2024/10/15
- 103/195: gnu: python-widgetsnbextension: Update to 4.0.10., guix-commits, 2024/10/15
- 105/195: gnu: python-ipykernel: Update to 6.29.4., guix-commits, 2024/10/15
- 101/195: gnu: python-mistune: Update to 3.0.2., guix-commits, 2024/10/15
- 120/195: gnu: Add xcffibgen., guix-commits, 2024/10/15