summaryrefslogtreecommitdiff
path: root/gnu/packages/python-web.scm
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-11-30 08:58:01 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-12-04 21:03:15 +0000
commit71c2b91ec44d5e281f53682565d7e25d2c4d275f (patch)
treeeb5d4d3748d6be409aa0d5bae56965772970aa4b /gnu/packages/python-web.scm
parent76d88c774e826761db0cf654de969ea7c7c9db2b (diff)
gnu: python-zconfig: Switch to pyproject.
* gnu/packages/python-web.scm (python-zconfig): [source]: Switch to git-fetch. [build-system]: Switch to pyproject-build-system. [arguments]: Run guix style. [native-inputs]: Add python-setuptools. [description]: Improve style. Change-Id: I8eb52ac17be563c4db3d0c4a0892f659b76ffe96 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/python-web.scm')
-rw-r--r--gnu/packages/python-web.scm52
1 files changed, 28 insertions, 24 deletions
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 3b62833953b..10249a9343d 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -5461,36 +5461,40 @@ files. These locks can also be used to mediate access to other files.")
(version "4.0")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "ZConfig" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/zopefoundation/ZConfig/")
+ (commit version)))
+ (file-name (git-file-name name version))
(sha256
- (base32 "0mh13p38vq7ip4zkvaplzr8w0mqrmmqiyb5y663d165slvxl5mpq"))))
- (build-system python-build-system)
+ (base32 "1x502hyfijh6fc8n85cm046c44spwfmwcn2lnxa1axg8n0n5rsbp"))))
+ (build-system pyproject-build-system)
(arguments
- '(#:phases (modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (if tests?
- (begin
- ;; This test assumes we still have setup.py in the
- ;; directory from which we import zconfig, which
- ;; does not work after installing the package.
- (delete-file-recursively
- "src/ZConfig/tests/test_readme.py")
- (invoke "zope-testrunner" "-vv" "--test-path=src"
- "--all"))
- (format #t "test suite not run~%")))))))
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (if tests?
+ (begin
+ ;; This test assumes we still have setup.py in the
+ ;; directory from which we import zconfig, which
+ ;; does not work after installing the package.
+ (delete-file-recursively
+ "src/ZConfig/tests/test_readme.py")
+ (invoke "zope-testrunner" "-vv" "--test-path=src" "--all"))
+ (format #t "test suite not run~%")))))))
(native-inputs (list python-docutils python-manuel python-zope-exceptions
- python-zope-testrunner))
+ python-zope-testrunner python-setuptools))
(home-page "https://github.com/zopefoundation/ZConfig/")
(synopsis "Structured configuration library intended for general use")
(description
- "@code{zconfig} is a configuration library intended for general
-use. It supports a hierarchical schema-driven configuration model that allows
-a schema to specify data conversion routines written in Python. Its model is
-very different from the model supported by the @code{configparser} module
-found in Python's standard library, and is more suitable to
-configuration-intensive applications.")
+ "@code{zconfig} is a configuration library intended for general use. It
+supports a hierarchical schema-driven configuration model that allows a schema
+to specify data conversion routines written in Python. Its model is very
+different from the model supported by the @code{configparser} module found in
+Python's standard library, and is more suitable to configuration-intensive
+applications.")
(license license:zpl2.1)))
(define-public python-zodb