guix_mirror_bot pushed a commit to branch python-team
in repository guix.
commit 660315bf7a9f870f838fed7d5bc776a543b8071a
Author: Nicolas Graves <[email protected]>
AuthorDate: Fri Oct 31 21:06:53 2025 +0100
gnu: python-defusedxml: Update to 0.7.1-0.c744588.
* gnu/packages/xml.scm (python-defusedxml): Update to 0.7.1-0.c744588.
[source]: Switch to git-fetch.
[arguments]: Run a custom test-suite.
[native-inputs]: Remove python-wheel.
Change-Id: If80357c1c4a18e0ca910ec245141ecad7649b08e
Signed-off-by: Sharlatan Hellseher <[email protected]>
---
gnu/packages/xml.scm | 22 ++++++++++++++++------
1 file changed, 16 insertions(+), 6 deletions(-)
diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm
index 0aaa8d6245..bd9e89b38c 100644
--- a/gnu/packages/xml.scm
+++ b/gnu/packages/xml.scm
@@ -1511,18 +1511,28 @@ files. It is designed to be fast and to handle large
input files.")
(define-public python-defusedxml
(package
(name "python-defusedxml")
- (version "0.7.1")
+ (properties '((commit . "c7445887f5e1bcea470a16f61369d29870cfcfe1")
+ (revision . "0")))
+ (version (git-version "0.7.1"
+ (assoc-ref properties 'revision)
+ (assoc-ref properties 'commit)))
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "defusedxml" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/tiran/defusedxml")
+ (commit (assoc-ref properties 'commit))))
+ (file-name (git-file-name name version))
(sha256
- (base32 "0s9ym98jrd819v4arv9gmcr6mgljhxd9q866sxi5p4c5n4nh7cqv"))))
+ (base32 "08926fginj14ahbym34va7rawfvnqq46hbfx33g66rw5lajcl4yq"))))
(build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-backend #~'custom
+ #:test-flags #~(list "tests.py")))
(home-page "https://github.com/tiran/defusedxml")
(native-inputs
- (list python-setuptools
- python-wheel))
+ (list python-setuptools))
(synopsis "XML bomb protection for Python stdlib modules")
(description
"Defusedxml provides XML bomb protection for Python stdlib modules.")