python313Packages.traits: fix build (#373698)
[NixPkgs.git] / pkgs / development / python-modules / gitdb / default.nix
blob6de58d1edd01af85e8c2b11067da7ef24e04d245
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   pytestCheckHook,
6   pythonOlder,
7   setuptools,
8   smmap,
9 }:
11 buildPythonPackage rec {
12   pname = "gitdb";
13   version = "4.0.11";
14   pyproject = true;
16   disabled = pythonOlder "3.8";
18   src = fetchPypi {
19     inherit pname version;
20     hash = "sha256-v1QhEmE21tCvVbwefBrxw5ejT1t71553bNPol4XCsEs=";
21   };
23   nativeBuildInputs = [
24     setuptools
25   ];
27   pythonRelaxDeps = [ "smmap" ];
29   propagatedBuildInputs = [ smmap ];
31   nativeCheckInputs = [ pytestCheckHook ];
33   pythonImportsCheck = [ "gitdb" ];
35   disabledTests = [
36     # Tests need part which are not shipped with PyPI releases
37     "test_base"
38     "test_reading"
39     "test_writing"
40     "test_correctness"
41     "test_loose_correctness"
42     "test_pack_random_access"
43     "test_pack_writing"
44     "test_stream_reading"
45   ];
47   meta = with lib; {
48     description = "Git Object Database";
49     homepage = "https://github.com/gitpython-developers/gitdb";
50     changelog = "https://github.com/gitpython-developers/gitdb/releases/tag/${version}";
51     license = licenses.bsd3;
52     maintainers = [ ];
53   };