mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-pytest-sanic: Fix build.
* gnu/packages/python-check.scm (python-pytest-sanic) [build-system]: Swap to pyproject-build-system. [arguments] <phases>: Remove 'relax-requirements, add 'use-poetry-core. [native-inputs]: Add python-poetry-core. Change-Id: I13d44b4e57a96e304ba50fdf0c5e4948a2119f1d
This commit is contained in:
parent
ac9543ea79
commit
5ab81d5c28
1 changed files with 9 additions and 9 deletions
|
@ -2814,20 +2814,20 @@ help in debugging failures and optimizing the scheduler to improve speed.")
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"0shq1bqnydj0l3ipb73j1qh5kqcjvzkps30zk8grq3dwmh3wmnkr"))))
|
"0shq1bqnydj0l3ipb73j1qh5kqcjvzkps30zk8grq3dwmh3wmnkr"))))
|
||||||
;; We don't use pyproject-build-system because that would require
|
(build-system pyproject-build-system)
|
||||||
;; poetry.masonry.
|
|
||||||
(build-system python-build-system)
|
|
||||||
(arguments
|
(arguments
|
||||||
;; Tests depend on python-sanic.
|
;; Tests depend on python-sanic.
|
||||||
(list
|
(list
|
||||||
#:tests? #f
|
#:tests? #f
|
||||||
#:phases
|
#:phases
|
||||||
'(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'relax-requirements
|
(add-after 'unpack 'use-poetry-core
|
||||||
(lambda _
|
(lambda _
|
||||||
(substitute* "setup.py"
|
;; Patch to use the core poetry API.
|
||||||
(("websockets.*<11.0")
|
(substitute* "pyproject.toml"
|
||||||
"websockets<13.0")))))))
|
(("poetry.masonry.api") "poetry.core.masonry.api")))))))
|
||||||
|
(native-inputs
|
||||||
|
(list python-poetry-core))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list python-httpx python-async-generator python-pytest
|
(list python-httpx python-async-generator python-pytest
|
||||||
python-websockets))
|
python-websockets))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue