gnu: python-zope-interface: Improve package.

* gnu/packages/python-web.scm (python-zope-interface)
[source]: Switch to git-fetch.
[arguments, native-inputs, synopsis, description]: Improve style.
[home-page]: Replace by the readthedocs link.

Change-Id: I7e0a7bd921bd40e26bdae16c552dbc6d5a6b3b4f
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Nicolas Graves 2025-09-20 23:06:49 +02:00 committed by Sharlatan Hellseher
parent 4aa7f04f2b
commit 53f88f43af
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -4497,51 +4497,56 @@ systems can be built.")
(version "7.2") (version "7.2")
(source (source
(origin (origin
(method url-fetch) (method git-fetch)
(uri (pypi-uri "zope.interface" version)) (uri (git-reference
(url "https://github.com/zopefoundation/zope.interface")
(commit version)))
(file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32 "01snm1lbqhx3ird4m76nciaqasxvf8dd6817zm35v684g5hbzd2s"))))
"1zi84y3s90jylv8xfvdlr05f9xf7ca1p6bidngsxlk7fs6iz2jcb"))))
(build-system pyproject-build-system) (build-system pyproject-build-system)
(arguments '(#:tests? #f)) ; test suite can't find python-zope-testing (arguments
(native-inputs ;; XXX: test suite can't find python-zope-testing
(list python-setuptools)) (list #:tests? #f))
(home-page "https://github.com/zopefoundation/zope.interface") (native-inputs (list python-setuptools))
(synopsis "Python implementation of the \"design by contract\" (home-page "https://zopeinterface.readthedocs.io")
methodology") (synopsis "\"Design by contract\" methodology in Python")
(description "Zope.interface provides an implementation of \"object (description
interfaces\" for Python. Interfaces are a mechanism for labeling objects as "Zope.interface provides an implementation of \"object interfaces\" for
conforming to a given API or contract.") Python. Interfaces are a mechanism for labeling objects as conforming to a
given API or contract.")
(license license:zpl2.1))) (license license:zpl2.1)))
(define-public python-zope-exceptions (define-public python-zope-exceptions
(package (package
(name "python-zope-exceptions") (name "python-zope-exceptions")
(version "4.6") (version "6.0")
(source (source
(origin (origin
(method url-fetch) (method git-fetch)
(uri (pypi-uri "zope.exceptions" version)) (uri (git-reference
(url "https://github.com/zopefoundation/zope.exceptions")
(commit version)))
(file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32 "0fmsw2j8islaiv6zf2mxh2s43y7virqny6s8gk8v2zkcxpy95cic"))))
"1kc3hql2i35ys5alkj9csiaz2s9bx0rff585vnrrgvavqsj297b1")))) (build-system pyproject-build-system)
(build-system python-build-system)
(arguments (arguments
'(#:phases (list
(modify-phases %standard-phases #:phases
(replace 'check #~(modify-phases %standard-phases
(lambda* (#:key tests? #:allow-other-keys) (replace 'check
(if tests? (lambda* (#:key tests? #:allow-other-keys)
(invoke "zope-testrunner" "--test-path=src") (if tests?
(format #t "test suite not run~%"))))))) (invoke "zope-testrunner" "--test-path=src")
(native-inputs (format #t "test suite not run~%")))))))
`(("python-zope-testrunner" ,python-zope-testrunner-bootstrap))) (native-inputs (list python-setuptools python-zope-testrunner-bootstrap))
(propagated-inputs (propagated-inputs (list python-zope-interface))
(list python-zope-interface)) (home-page "https://github.com/zopefoundation/zope.exceptions")
(home-page "https://pypi.org/project/zope.exceptions/")
(synopsis "Zope exceptions") (synopsis "Zope exceptions")
(description "Zope.exceptions provides general-purpose exception types (description
that have uses outside of the Zope framework.") "Zope.exceptions provides general-purpose exception types that have uses
outside of the Zope framework.")
(license license:zpl2.1))) (license license:zpl2.1)))
(define (python-zope-bootstrap-package orig) (define (python-zope-bootstrap-package orig)