rekado pushed a commit to branch master
in repository guix.

commit aa704e51abc2b20ca7b431b51fd36c5c2b107b12
Author: Ricardo Wurmus <[email protected]>
AuthorDate: Thu Dec 19 21:32:28 2024 +0100

    gnu: python-dulwich: Update to 0.21.7.
    
    * gnu/packages/python-xyz.scm (python-dulwich): Update to 0.21.7.
    [build-system]: Use pyproject-build-system.
    [arguments]: Use #:test-flags; fix tests after 'unpack phase, split off
    'pre-check phase.
    [native-inputs]: Replace git with git-minimal/pinned; add python-mypy,
    python-paramiko, python-pytest, python-requests, python-setuptools, and
    python-wheel; remove python-mock and python-gpg.
    
    Change-Id: I642de3e7707d545672066c6e59c9bcc2b5926097
---
 gnu/packages/python-xyz.scm | 52 ++++++++++++++++++++++++++++-----------------
 1 file changed, 33 insertions(+), 19 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 759e720eec..2add5b85ef 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -24816,37 +24816,51 @@ system.")
 (define-public python-dulwich
   (package
     (name "python-dulwich")
-    (version "0.20.30")
+    (version "0.21.7")
     (source
-      (origin
-        (method url-fetch)
-        (uri (list (string-append "https://www.dulwich.io/releases/";
-                            "dulwich-" version ".tar.gz")
-                   (pypi-uri "dulwich" version)))
-        (sha256
-          (base32
-           "0hafaff30bmkj30b8pwpwsy3fz5h6c1pn98ihqcvl5zndflr1h22"))))
-    (build-system python-build-system)
+     (origin
+       (method url-fetch)
+       (uri (list (string-append "https://www.dulwich.io/releases/";
+                                 "dulwich-" version ".tar.gz")
+                  (pypi-uri "dulwich" version)))
+       (sha256
+        (base32
+         "0s79c3g19m052jbxm66amxv5v60ijx5px4hjmk1q19ff6dlcdsd9"))))
+    (build-system pyproject-build-system)
     (arguments
-     '(#:phases
-       (modify-phases %standard-phases
-         (add-before 'check 'fix-tests
+     (list
+      #:test-flags
+      ;; DULWICH_SWIFT_CFG is not set.
+      '(list "--ignore=dulwich/contrib/test_swift_smoke.py"
+             "-k"
+             ;; 'HTTPClient' object has no attribute 'get_base_url'
+             "not test_init_connector")
+      #:phases
+      '(modify-phases %standard-phases
+         (add-after 'unpack 'fix-tests
            (lambda* (#:key inputs #:allow-other-keys)
              (substitute* '("dulwich/tests/test_repository.py"
                             "dulwich/tests/test_porcelain.py"
                             "dulwich/tests/test_hooks.py")
-               (("/bin/sh") (search-input-file inputs "/bin/sh")))
-             (setenv "TEST_RUNNER" "unittest")
-             (setenv "PYTHONHASHSEED" "random"))))))
+               (("/bin/sh") (search-input-file inputs "/bin/sh")))))
+         (add-before 'check 'pre-check
+           (lambda _ (setenv "PYTHONHASHSEED" "random"))))))
     (propagated-inputs
      (list python-fastimport python-urllib3))
     (native-inputs
-     (list python-mock python-geventhttpclient python-gpg
-           git gnupg))
+     (list gnupg
+           git-minimal/pinned
+           python-geventhttpclient
+           python-mypy
+           python-paramiko
+           python-pytest
+           python-requests
+           python-setuptools
+           python-wheel))
     (home-page "https://www.dulwich.io/";)
     (synopsis "Git implementation in Python")
     (description "Dulwich is an implementation of the Git file formats and
-     protocols written in pure Python.")
+protocols written in pure Python.")
     ;; Can be used with either license.
     (license (list license:asl2.0 license:gpl2+))))
 

Reply via email to