Merge pull request #268913 from fabaff/gitdb-bump

python311Packages.gitdb: 4.0.10 -> 4.0.11
This commit is contained in:
Fabian Affolter 2023-11-22 08:36:32 +01:00 committed by GitHub
commit 6cf687b12d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,33 +1,57 @@
{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, pythonOlder
, setuptools
, smmap
, isPy3k
}:
buildPythonPackage rec {
pname = "gitdb";
version = "4.0.10";
disabled = !isPy3k;
version = "4.0.11";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-brmQtp304VutiZ6oaNxGVyw/dTOXNWY7gd55sG8X65o=";
hash = "sha256-v1QhEmE21tCvVbwefBrxw5ejT1t71553bNPol4XCsEs=";
};
propagatedBuildInputs = [ smmap ];
nativeBuildInputs = [
setuptools
];
postPatch = ''
substituteInPlace setup.py --replace ",<4" ""
'';
propagatedBuildInputs = [
smmap
];
# Bunch of tests fail because they need an actual git repo
doCheck = false;
nativeCheckInputs = [
pytestCheckHook
];
meta = {
pythonImportsCheck = [
"gitdb"
];
disabledTests = [
# Tests need part which are not shipped with PyPI releases
"test_base"
"test_reading"
"test_writing"
"test_correctness"
"test_loose_correctness"
"test_pack_random_access"
"test_pack_writing"
"test_stream_reading"
];
meta = with lib; {
description = "Git Object Database";
maintainers = [ ];
homepage = "https://github.com/gitpython-developers/gitdb";
license = lib.licenses.bsd3;
changelog = "https://github.com/gitpython-developers/gitdb/releases/tag/${version}";
license = licenses.bsd3;
maintainers = with maintainers; [ ];
};
}