gnu: python-zc-lockfile: Update to 4.0.

* gnu/packages/python-web.scm (python-zc-lockfile): Update to 4.0.
[source]: Switch to git-fetch.
[build-system]: Switch to pyproject-build-system.
[arguments]: Run guix style.
[native-inputs]: Add python-setuptools.

Change-Id: I186ae51a4488fd4bb82d4a5100d754aa587e9c17
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Nicolas Graves 2025-11-30 08:55:21 +01:00 committed by Sharlatan Hellseher
parent bb882b77f6
commit 76d88c774e
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -5426,22 +5426,28 @@ object to help create WSGI responses.")
(define-public python-zc-lockfile
(package
(name "python-zc-lockfile")
(version "3.0.post1")
(version "4.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "zc.lockfile" version))
(method git-fetch)
(uri (git-reference
(url "https://github.com/zopefoundation/zc.lockfile")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32 "1v41irj7azaag3f14xyviv3l8mvap74v5p3q274k68vakrnyxcmd"))))
(build-system python-build-system)
(base32 "0b1kkwx2d4wf392sd3bfjvzgkdrknwsxg9mby121mq8zl7c490gg"))))
(build-system pyproject-build-system)
(arguments
'(#:phases (modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(if tests?
(invoke "zope-testrunner" "--test-path=src")
(format #t "test suite not run~%")))))))
(native-inputs (list python-zope-testing python-zope-testrunner))
(list
#:phases
#~(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(if tests?
(invoke "zope-testrunner" "--test-path=src")
(format #t "test suite not run~%")))))))
(native-inputs (list python-zope-testing python-zope-testrunner
python-setuptools))
(home-page "https://github.com/zopefoundation/zc.lockfile")
(synopsis "Interprocess locks using lock files")
(description