gnu: python-dulwich: Update to 0.20.30.

* gnu/packages/python-xyz.scm (python-dulwich): Update to 0.20.30.
[arguments]: Remove workaround.  Patch one more file.
[native-inputs]: Add GNUPG and PYTHON-GPG.
This commit is contained in:
Marius Bakke 2022-01-18 17:57:55 +01:00
parent 38fdd118d0
commit 5122848d5b
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -17989,7 +17989,7 @@ (define-public python2-cheetah
(define-public python-dulwich (define-public python-dulwich
(package (package
(name "python-dulwich") (name "python-dulwich")
(version "0.19.16") (version "0.20.30")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
@ -17998,29 +17998,24 @@ (define-public python-dulwich
(pypi-uri "dulwich" version))) (pypi-uri "dulwich" version)))
(sha256 (sha256
(base32 (base32
"0l589jl0lxx59yq0p6vmgw0q0hmfh48iqwyy0x6g1dmz93262igp")))) "0hafaff30bmkj30b8pwpwsy3fz5h6c1pn98ihqcvl5zndflr1h22"))))
(build-system python-build-system) (build-system python-build-system)
(arguments (arguments
`(#:phases '(#:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-before 'check 'fix-tests (add-before 'check 'fix-tests
(lambda* (#:key inputs #:allow-other-keys) (lambda* (#:key inputs #:allow-other-keys)
;; The tests use Popen with a custom environment which doesn't
;; include PATH.
(substitute* "dulwich/tests/compat/utils.py"
(("'git'") (string-append "'"
(which "git")
"'")))
(substitute* '("dulwich/tests/test_repository.py" (substitute* '("dulwich/tests/test_repository.py"
"dulwich/tests/test_porcelain.py"
"dulwich/tests/test_hooks.py") "dulwich/tests/test_hooks.py")
(("#!/bin/sh") (string-append "#!" (which "sh")))) (("/bin/sh") (search-input-file inputs "/bin/sh")))
(setenv "TEST_RUNNER" "unittest") (setenv "TEST_RUNNER" "unittest")
(setenv "PYTHONHASHSEED" "random") (setenv "PYTHONHASHSEED" "random"))))))
#t)))))
(propagated-inputs (propagated-inputs
(list python-fastimport python-urllib3)) (list python-fastimport python-urllib3))
(native-inputs (native-inputs
(list python-mock python-geventhttpclient git)) (list python-mock python-geventhttpclient python-gpg
git gnupg))
(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