gnu: python-zope-hookable: Update to 7.0.

* gnu/packages/python-web.scm (python-zope-hookable): Update to 7.0.
[source]: Switch to git-fetch.
[build-system]: Switch to pyproject-build-system.
[arguments]<#:phases>: Replace 'check phase.
[native-inputs]: Add python-setuptools.
[home-page]: Use the readthedocs link.
[description]: Improve style.

Change-Id: If35c751536895728b14b7d0b9a35c008e3c7832f
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Nicolas Graves 2025-09-20 23:45:00 +02:00 committed by Sharlatan Hellseher
parent 0b0bd44d41
commit 633ce9bc8d
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -4865,25 +4865,37 @@ etc.) for which the proxy is responsible.")
(define-public python-zope-hookable (define-public python-zope-hookable
(package (package
(name "python-zope-hookable") (name "python-zope-hookable")
(version "5.0.1") (version "7.0")
(source (source
(origin (origin
(method url-fetch) (method git-fetch)
(uri (pypi-uri "zope.hookable" version)) (uri (git-reference
(sha256 (url "https://github.com/zopefoundation/zope.hookable")
(base32 (commit version)))
"0hc82lfr7bk53nvbxvjkibkarngyrzgfk2i6bg8wshl0ly0pdl19")))) (file-name (git-file-name name version))
(build-system python-build-system) (sha256
(native-inputs (base32 "1l94xzzpyslpgv2ghvl5qzpfcsq02kp04fmvl95d6jcmivmmr4m8"))))
(list python-coverage python-zope-testing)) (build-system pyproject-build-system)
(home-page "https://github.com/zopefoundation/zope.hookable") (arguments
(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://zopehookable.readthedocs.io")
(synopsis "Zope hookable") (synopsis "Zope hookable")
(description "This package supports the efficient creation of hookable (description
objects, which are callable objects that are meant to be optionally replaced. "This package supports the efficient creation of hookable objects, which
The idea is that you create a function that does some default thing and make i are callable objects that are meant to be optionally replaced. The idea is
hookable. Later, someone can modify what it does by calling its sethook method that you create a function that does some default thing and make i hookable.
and changing its implementation. All users of the function, including those Later, someone can modify what it does by calling its sethook method and
that imported it, will see the change.") changing its implementation. All users of the function, including those that
imported it, will see the change.")
(license license:zpl2.1))) (license license:zpl2.1)))
(define-public python-zope-location (define-public python-zope-location