summaryrefslogtreecommitdiff
path: root/gnu/packages/python-web.scm
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-09-20 23:30:22 +0200
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-09-25 09:36:39 +0100
commitc6d73f953eec43ca4054bb8964ad0991ad9f69e3 (patch)
tree1e91033d06980bcbdda1af6443ea3dc587481c73 /gnu/packages/python-web.scm
parent9e296985f4877398d60544ae2623db52f3b874b1 (diff)
gnu: python-zope-schema: Switch to pyproject.
* gnu/packages/python-web.scm (python-zope-schema): [source]: Switch to git-fetch. [build-system]: Switch to pyproject-build-system. [arguments]: Improve style. [native-inputs]: Add python-setuptools. Change-Id: I4ee6854e3c0702a6f3fefc5239d1a90cf484d7f6 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/python-web.scm')
-rw-r--r--gnu/packages/python-web.scm39
1 files changed, 20 insertions, 19 deletions
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index a90ca2208c7..34ae0b131fb 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -4682,27 +4682,28 @@ internationalized messages within program source text.")
(version "7.0.1")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "zope.schema" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/zopefoundation/zope.schema")
+ (commit version)))
+ (file-name (git-file-name name version))
(sha256
- (base32
- "1fgvx7nim9plxnyiq6vmah1dji7ba5290fws1i0lwk9m0g5xpm7a"))))
- (build-system python-build-system)
+ (base32 "1hj6j0gqgvv9a5pyaz54wbn8n7wf9lyg4njb2cfs980z0d5faj39"))))
+ (build-system pyproject-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key inputs outputs tests? #:allow-other-keys)
- (add-installed-pythonpath inputs outputs)
- (if tests?
- (invoke "zope-testrunner" "--test-path=src")
- #t))))))
- (propagated-inputs
- (list python-zope-event python-zope-interface))
- (native-inputs
- (list python-zope-i18nmessageid python-zope-testing
- python-zope-testrunner))
- (home-page "https://pypi.org/project/zope.schema/")
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key inputs outputs tests? #:allow-other-keys)
+ (add-installed-pythonpath inputs outputs)
+ (if tests?
+ (invoke "zope-testrunner" "--test-path=src")
+ (format #t "test suite not run.~%")))))))
+ (propagated-inputs (list python-zope-event python-zope-interface))
+ (native-inputs (list python-zope-i18nmessageid python-zope-testing
+ python-zope-testrunner python-setuptools))
+ (home-page "https://zopeschema.readthedocs.io")
(synopsis "Zope data schemas")
(description "Zope.scheme provides extensions to zope.interface for
defining data schemas.")