guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 58e4207bcdec605c8f36c5011d987faff6afbd33
Author: Janneke Nieuwenhuizen <[email protected]>
AuthorDate: Tue Sep 9 20:07:59 2025 +0200

    gnu: Add python-dulwich-0.24.
    
    * gnu/packages/python-xyz.scm (python-dulwich-0.24): New variable.
    
    Change-Id: I711dbb2595fa6674b3f2e3ac029ed437d3480423
---
 gnu/packages/python-xyz.scm | 49 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 49 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 67ea589d47..35d64e0f9e 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -25076,6 +25076,55 @@ protocols written in pure Python.")
     ;; Can be used with either license.
     (license (list license:asl2.0 license:gpl2+))))
 
+(define-public python-dulwich-0.24
+  (package/inherit python-dulwich
+    (name "python-dulwich")
+    (version "0.24.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "dulwich" version))
+       (sha256
+        (base32 "0n3p8jyxl4zwc63la10v8llc58fc5pcnfqdq9f1vn0hgy5jdi7z1"))))
+    (build-system pyproject-build-system)
+    (native-inputs
+     (modify-inputs (package-native-inputs python-dulwich)
+       (prepend python-setuptools-rust)))
+    (arguments
+     (list
+      #:test-flags
+      ;; DULWICH_SWIFT_CFG is not set.
+      '(list "--ignore=tests/contrib/test_swift_smoke.py"
+             ;; AttributeError: 'SwiftPackData' object has no attribute '_file'
+             "--ignore=tests/contrib/test_swift.py"
+             ;; No git repository was found at .
+             "--ignore=tests/test_cli.py"
+             ;; 'HTTPClient' object has no attribute 'get_base_url'
+             ;; 'NoneType' object has no attribute 'Merge3'
+             "--ignore=tests/test_cli_merge.py"
+             "--ignore=tests/test_merge_drivers.py"
+             "--ignore=tests/test_porcelain_cherry_pick.py"
+             "--ignore=tests/test_porcelain_merge.py"
+             "--ignore=tests/test_rebase.py"
+             "--ignore=tests/test_repository.py"
+             "--ignore=tests/test_worktree.py"
+             "--ignore=tests/test_porcelain.py"
+             "--ignore=tests/test_porcelain_filters.py"
+             ;; False is not true (interesting capitalization?)
+             "--ignore=tests/test_hooks.py")
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'patch-pyproject
+            (lambda _
+              ;; setuptools cannot handle both license and license-files
+              (substitute* "pyproject.toml"
+                (("^license = .*") "license = {text = \"Apache-2.0\"}\n")
+                (("^license-files = .*") ""))))
+          (add-before 'check 'pre-check
+            (lambda* (#:key tests?  #:allow-other-keys)
+              (when tests?
+                (setenv "HOME" "/tmp")))))))))
+
 (define-public python-dunamai
   (package
     (name "python-dunamai")

Reply via email to