From 2c41b24d6010be6d595601017c022f31896bfb2c Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 15 Jul 2025 14:54:49 +0100 Subject: [PATCH] gnu: python-gitdb: Update to 4.0.12. * gnu/packages/version-control.scm (python-gitdb): Update to 4.0.12. [build-system]: Use pyproject. [arguments] : Skip one test. : Use default 'check; add 'pre-check. [native-inputs]: Remove python-nose; add python-pytest, python-setuptools, and python-wheel. Change-Id: I3ede39a717671ae24b05cac99515981fce478ec7 --- gnu/packages/version-control.scm | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm index 6cae9c2546b35915b338338663ecdbaed6d7f884..1142924efdb15b4cd091526dc45bb3c6f2674aaa 100644 --- a/gnu/packages/version-control.scm +++ b/gnu/packages/version-control.scm @@ -1924,16 +1924,19 @@ default) of the repository.") (define-public python-gitdb (package (name "python-gitdb") - (version "4.0.2") + (version "4.0.12") (source (origin (method url-fetch) (uri (pypi-uri "gitdb" version)) (sha256 (base32 - "0l113fphn6msjl3cl3kyf332b6lal7daxdd0nfma0x9ipfb013jr")))) - (build-system python-build-system) + "0wdmzngk870944nc6q5sphzv29jzhgddbh7vzhk366hrbn2izxsy")))) + (build-system pyproject-build-system) (arguments - `(#:phases (modify-phases %standard-phases + ;; One test fails, probably due to low ulimit: ValueError: Expected to + ;; write 1000 objects into pack, but received only 0 from iterators. + `(#:test-flags '("-k" "not test_pack_writing") + #:phases (modify-phases %standard-phases (add-before 'check 'create-test-repository (lambda _ (mkdir "/tmp/testrepo") @@ -1955,16 +1958,15 @@ default) of the repository.") ;; The repository checkout must be a "bare" clone. (invoke "git" "clone" "--bare" "/tmp/testrepo" "/tmp/testrepo.git"))) - (replace 'check + (add-before 'check 'pre-check (lambda _ (setenv "GITDB_TEST_GIT_REPO_BASE" "/tmp/testrepo.git") ;; Skip tests that must be run from the gitdb repository. - (setenv "TRAVIS" "1") - (invoke "nosetests" "-v")))))) + (setenv "TRAVIS" "1")))))) (propagated-inputs (list python-smmap)) (native-inputs - (list git-minimal/pinned python-nose)) + (list git-minimal/pinned python-pytest python-setuptools python-wheel)) (home-page "https://github.com/gitpython-developers/gitdb") (synopsis "Python implementation of the Git object database") (description