summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-10-31 21:06:53 +0100
committerAndreas Enge <andreas@enge.fr>2026-02-07 12:28:28 +0100
commitab0c70e27eff93b50a5de67a754ec731cef413ba (patch)
tree9fa00f27acea3279fb979976fcab0aeb8c8a6972
parent72c177d747e778224594fc7c8bd5dbcc36d54fb9 (diff)
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 <sharlatanus@gmail.com>
-rw-r--r--gnu/packages/xml.scm22
1 files changed, 16 insertions, 6 deletions
diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm
index d0f92bfbc9f..6e730cfab4a 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.")