1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pytestCheckHook,
6 pythonOlder,
7 setuptools,
8 smmap,
9}:
10
11buildPythonPackage rec {
12 pname = "gitdb";
13 version = "4.0.12";
14 pyproject = true;
15
16 disabled = pythonOlder "3.8";
17
18 src = fetchPypi {
19 inherit pname version;
20 hash = "sha256-XvcfhV0ZGjMm/PvA1dqDXyaxP7y6YMMsIQkcNJ/9tXE=";
21 };
22
23 nativeBuildInputs = [
24 setuptools
25 ];
26
27 pythonRelaxDeps = [ "smmap" ];
28
29 propagatedBuildInputs = [ smmap ];
30
31 nativeCheckInputs = [ pytestCheckHook ];
32
33 pythonImportsCheck = [ "gitdb" ];
34
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 ];
46
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 };
54}