From 0b0bd44d41fdbce13d61ceee2cdda5d73f0694f1 Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Sat, 20 Sep 2025 23:41:22 +0200 Subject: [PATCH] gnu: python-zope-proxy: Update to 7.0. * gnu/packages/python-web.scm (python-zope-proxy): 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. [description]: Improve style. [home-page]: Use the readthedocs link. Change-Id: Ic92689e765e7fcc6ce5ce9156e18c33aebe5ff30 Signed-off-by: Sharlatan Hellseher --- gnu/packages/python-web.scm | 44 ++++++++++++++++++++++++------------- 1 file changed, 29 insertions(+), 15 deletions(-) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 254a9752fa7e9e2cafe89b4905bcc5bd7464f4f0..9d2adb4c3cf79d38eed52c9d4292f25ca6742813 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -4823,26 +4823,40 @@ Markup Language.") (define-public python-zope-proxy (package (name "python-zope-proxy") - (version "4.3.5") + (version "7.0") (source (origin - (method url-fetch) - (uri (pypi-uri "zope.proxy" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/zopefoundation/zope.proxy") + (commit version))) + (file-name (git-file-name name version)) (sha256 - (base32 - "14h7nyfbl5vpfk0rbviy4ygdfx0yx5kncvg6jpbdb0dhwna0ssm6")))) - (build-system python-build-system) + (base32 "00r9f4n0cl3fyc5gyf5l43zh95cmzx1gz6wr04k17d7wm2gmivyn")))) + (build-system pyproject-build-system) + (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-security-bootstrap python-zope-testrunner)) - (propagated-inputs - (list python-zope-interface)) - (home-page "https://pypi.org/project/zope.proxy/") + (list python-zope-location-bootstrap + python-zope-security-bootstrap + python-zope-testrunner + python-setuptools)) + (propagated-inputs (list python-zope-interface)) + (home-page "https://zopeproxy.readthedocs.io") (synopsis "Generic, transparent proxies") - (description "Zope.proxy provides generic, transparent proxies for Python. -Proxies are special objects which serve as mostly-transparent wrappers around -another object, intervening in the apparent behavior of the wrapped object -only when necessary to apply the policy (e.g., access checking, location -brokering, etc.) for which the proxy is responsible.") + (description + "Zope.proxy provides generic, transparent proxies for Python. Proxies are +special objects which serve as mostly-transparent wrappers around another +object, intervening in the apparent behavior of the wrapped object only when +necessary to apply the policy (e.g., access checking, location brokering, +etc.) for which the proxy is responsible.") (license license:zpl2.1))) (define-public python-zope-proxy-bootstrap