diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2026-03-26 07:42:04 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2026-05-24 10:14:47 +0100 |
| commit | 847c9e4c2e60ff407fcda38d01575196adb8d6c0 (patch) | |
| tree | e5cfaa809b6d6d06ce2d8288bba7bf2018e27d0c /gnu/packages/xml.scm | |
| parent | 6ff5be036e245fc139ec6c803dcbfab08d037a1e (diff) | |
gnu: python-defusedxml: Fix dependents sanity-checks.
* gnu/packages/xml.scm (python-defusedxml)
[properties]: Add upstream-version and...
[version]: ...use it.
[arguments]<#:phases>: Add phase 'patch-version.
Change-Id: Ia837c8fbe54db68f261eb3085c48049ba313fceb
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/xml.scm')
| -rw-r--r-- | gnu/packages/xml.scm | 18 |
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)) |
