diff options
-rw-r--r-- | pkgs/development/python-modules/gitdb/default.nix | 50 |
1 files changed, 37 insertions, 13 deletions
diff --git a/pkgs/development/python-modules/gitdb/default.nix b/pkgs/development/python-modules/gitdb/default.nix index d2d79697d10b..dc6be575153c 100644 --- a/pkgs/development/python-modules/gitdb/default.nix +++ b/pkgs/development/python-modules/gitdb/default.nix @@ -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 + ]; + + propagatedBuildInputs = [ + smmap + ]; + + nativeCheckInputs = [ + pytestCheckHook + ]; - postPatch = '' - substituteInPlace setup.py --replace ",<4" "" - ''; + pythonImportsCheck = [ + "gitdb" + ]; - # Bunch of tests fail because they need an actual git repo - doCheck = false; + 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 = { + 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; [ ]; }; } |