summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnu/packages/xml.scm18
1 files changed, 15 insertions, 3 deletions
diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm
index e72e2245a22..ede23e9fe3d 100644
--- a/gnu/packages/xml.scm
+++ b/gnu/packages/xml.scm
@@ -1556,9 +1556,10 @@ files. It is designed to be fast and to handle large input files.")
1556(define-public python-defusedxml 1556(define-public python-defusedxml
1557 (package 1557 (package
1558 (name "python-defusedxml") 1558 (name "python-defusedxml")
1559 (properties '((commit . "c7445887f5e1bcea470a16f61369d29870cfcfe1") 1559 (properties '((upstream-version . "0.7.1")
1560 (commit . "c7445887f5e1bcea470a16f61369d29870cfcfe1")
1560 (revision . "0"))) 1561 (revision . "0")))
1561 (version (git-version "0.7.1" 1562 (version (git-version (assoc-ref properties 'upstream-version)
1562 (assoc-ref properties 'revision) 1563 (assoc-ref properties 'revision)
1563 (assoc-ref properties 'commit))) 1564 (assoc-ref properties 'commit)))
1564 (source 1565 (source
@@ -1574,7 +1575,18 @@ files. It is designed to be fast and to handle large input files.")
1574 (arguments 1575 (arguments
1575 (list 1576 (list
1576 #:test-backend #~'custom 1577 #:test-backend #~'custom
1577 #:test-flags #~(list "tests.py"))) 1578 #:test-flags #~(list "tests.py")
1579 #:phases
1580 #~(modify-phases %standard-phases
1581 ;; Most dependents require ^0.7.1, source indicates 0.8.0rc2
1582 ;; but is necessary at this version to build with Python@3.12
1583 ;; Fake still being 0.7.1, despite running on Python@3.12.
1584 (add-after 'unpack 'patch-version
1585 (lambda _
1586 (substitute* "defusedxml/__init__.py"
1587 (("__version__ = .*")
1588 (format #f "__version__ = ~s~%"
1589 #$(assoc-ref properties 'upstream-version)))))))))
1578 (home-page "https://github.com/tiran/defusedxml") 1590 (home-page "https://github.com/tiran/defusedxml")
1579 (native-inputs 1591 (native-inputs
1580 (list python-setuptools)) 1592 (list python-setuptools))