From 76d88c774e826761db0cf654de969ea7c7c9db2b Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Sun, 30 Nov 2025 08:55:21 +0100 Subject: [PATCH] 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 --- gnu/packages/python-web.scm | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index a8cf858b002..3b62833953b 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -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