~ruther/guix-local

2c41b24d6010be6d595601017c022f31896bfb2c — Sharlatan Hellseher 8 months ago 869c3b6
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] <test-flags>: Skip one test.
  <phases>: Use default 'check; add 'pre-check.
  [native-inputs]: Remove python-nose; add python-pytest,
  python-setuptools, and python-wheel.

Change-Id: I3ede39a717671ae24b05cac99515981fce478ec7
1 files changed, 10 insertions(+), 8 deletions(-)

M gnu/packages/version-control.scm
M gnu/packages/version-control.scm => gnu/packages/version-control.scm +10 -8
@@ 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