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
This commit is contained in:
Ricardo Wurmus 2024-12-19 21:32:28 +01:00
parent 8992cf4cf1
commit aa704e51ab
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -24816,7 +24816,7 @@ system.")
(define-public python-dulwich (define-public python-dulwich
(package (package
(name "python-dulwich") (name "python-dulwich")
(version "0.20.30") (version "0.21.7")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
@ -24825,28 +24825,42 @@ system.")
(pypi-uri "dulwich" version))) (pypi-uri "dulwich" version)))
(sha256 (sha256
(base32 (base32
"0hafaff30bmkj30b8pwpwsy3fz5h6c1pn98ihqcvl5zndflr1h22")))) "0s79c3g19m052jbxm66amxv5v60ijx5px4hjmk1q19ff6dlcdsd9"))))
(build-system python-build-system) (build-system pyproject-build-system)
(arguments (arguments
'(#:phases (list
(modify-phases %standard-phases #:test-flags
(add-before 'check 'fix-tests ;; 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) (lambda* (#:key inputs #:allow-other-keys)
(substitute* '("dulwich/tests/test_repository.py" (substitute* '("dulwich/tests/test_repository.py"
"dulwich/tests/test_porcelain.py" "dulwich/tests/test_porcelain.py"
"dulwich/tests/test_hooks.py") "dulwich/tests/test_hooks.py")
(("/bin/sh") (search-input-file inputs "/bin/sh"))) (("/bin/sh") (search-input-file inputs "/bin/sh")))))
(setenv "TEST_RUNNER" "unittest") (add-before 'check 'pre-check
(setenv "PYTHONHASHSEED" "random")))))) (lambda _ (setenv "PYTHONHASHSEED" "random"))))))
(propagated-inputs (propagated-inputs
(list python-fastimport python-urllib3)) (list python-fastimport python-urllib3))
(native-inputs (native-inputs
(list python-mock python-geventhttpclient python-gpg (list gnupg
git gnupg)) git-minimal/pinned
python-geventhttpclient
python-mypy
python-paramiko
python-pytest
python-requests
python-setuptools
python-wheel))
(home-page "https://www.dulwich.io/") (home-page "https://www.dulwich.io/")
(synopsis "Git implementation in Python") (synopsis "Git implementation in Python")
(description "Dulwich is an implementation of the Git file formats and (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. ;; Can be used with either license.
(license (list license:asl2.0 license:gpl2+)))) (license (list license:asl2.0 license:gpl2+))))