mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-glob2: Switch to pyproject.
* gnu/packages/python-xyz.scm (python-glob2)[build-system]: Switch to pyproject-build-system. [native-inputs]: Add python-pytest. and python-setuptools-next. [arguments] <#:phases>: Add fixes for pytest 8. Change-Id: I95459df0aedf4c5ba22d060aa1e2640875ecb240 Modified-by: Sharlatan Hellseher <sharlatanus@gmail.com> Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
parent
5d31f8f406
commit
fd4402f09a
1 changed files with 15 additions and 3 deletions
|
@ -29211,12 +29211,24 @@ compatible with @code{asyncio}.")
|
||||||
(origin
|
(origin
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
(uri (git-reference
|
(uri (git-reference
|
||||||
(url "https://github.com/miracle2k/python-glob2")
|
(url "https://github.com/miracle2k/python-glob2")
|
||||||
(commit (string-append "v" version))))
|
(commit (string-append "v" version))))
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "160nh2ay9lw2hi0rixpzb2k87r6ql56k0j2cm87lqz8xc8zbw919"))))
|
(base32 "160nh2ay9lw2hi0rixpzb2k87r6ql56k0j2cm87lqz8xc8zbw919"))))
|
||||||
(build-system python-build-system)
|
(build-system pyproject-build-system)
|
||||||
|
(arguments
|
||||||
|
(list
|
||||||
|
#:phases
|
||||||
|
#~(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'patch-tests-for-pytest8
|
||||||
|
;; See: <https://github.com/miracle2k/python-glob2/issues/30>.
|
||||||
|
(lambda _
|
||||||
|
(substitute* "test.py"
|
||||||
|
(("setup\\(") "setup_method(")
|
||||||
|
(("teardown\\(") "teardown_method("))
|
||||||
|
(rename-file "test.py" "glob2_test.py"))))))
|
||||||
|
(native-inputs (list python-pytest python-setuptools-next))
|
||||||
(home-page "https://github.com/miracle2k/python-glob2/")
|
(home-page "https://github.com/miracle2k/python-glob2/")
|
||||||
(synopsis "Extended Version of the python buildin glob module")
|
(synopsis "Extended Version of the python buildin glob module")
|
||||||
(description "This is an extended version of the Python
|
(description "This is an extended version of the Python
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue