guix_mirror_bot pushed a commit to branch python-team
in repository guix.

commit 6b441168921281d0acb53ee58f4494f3235eb40a
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Wed Jun 10 18:28:34 2026 +0100

    gnu: python-isoduration: Build from git.
    
    * gnu/packages/python-xyz.scm (python-isoduration):
    [source]: Switch to git-fetch.
    [arguments] <tests?, test-flags>: Enable.
    [native-inputs]: Remove python-wheel; add python-pytest.
    
    Change-Id: I4c1152c70599ed606ad1f11aaf7d2c7f648eb3db
---
 gnu/packages/python-xyz.scm | 23 +++++++++++++++++------
 1 file changed, 17 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 7a9bcf010c..5d182b5535 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -25407,19 +25407,30 @@ short version, is suitable to be include as a 
dependency in other projects.")
     (license license:lgpl3+)))
 
 (define-public python-isoduration
+  ;; XXX: The project might be abandoned, consider to remove when nothing
+  ;; depends on it.
   (package
     (name "python-isoduration")
     (version "20.11.0")
     (source
      (origin
-       (method url-fetch)
-       (uri (pypi-uri "isoduration" version))
+       (method git-fetch)
+       (uri (git-reference
+              (url "https://github.com/bolsote/isoduration";)
+              (commit version)))
+       (file-name (git-file-name name version))
        (sha256
-        (base32 "1n8vpa9fckhc5934kp7m83wq81dhkvw987v7mjg2fdbr2car0bxc"))))
+        (base32 "1naml13qa1inr6k0j25jgw49r3wnkvwq5xc0v4navz6mxlgsrfp8"))))
     (build-system pyproject-build-system)
-    (arguments '(#:tests? #f))          ;no tests in PyPI archive
-    (propagated-inputs (list python-arrow))
-    (native-inputs (list python-setuptools python-wheel))
+    (arguments
+     (list
+      ;; E   ModuleNotFoundError: No module named 'isodate'
+      #:test-flags #~(list "--ignore=tests/test_benchmark.py")))
+    (native-inputs
+     (list python-pytest
+           python-setuptools))
+    (propagated-inputs
+     (list python-arrow))
     (home-page "https://github.com/bolsote/isoduration";)
     (synopsis "Operations with ISO 8601 durations")
     (description "ISO 8601 is most commonly known as a way to exchange

Reply via email to