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
(package
(name "python-dulwich")
(version "0.20.30")
(version "0.21.7")
(source
(origin
(method url-fetch)
@ -24825,24 +24825,38 @@ system.")
(pypi-uri "dulwich" version)))
(sha256
(base32
"0hafaff30bmkj30b8pwpwsy3fz5h6c1pn98ihqcvl5zndflr1h22"))))
(build-system python-build-system)
"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