1{ lib
2, buildPythonPackage
3, fetchPypi
4, isPy27
5, substituteAll
6, git
7, gitdb
8, ddt
9}:
10
11buildPythonPackage rec {
12 pname = "GitPython";
13 version = "3.1.14";
14 disabled = isPy27; # no longer supported
15
16 src = fetchPypi {
17 inherit pname version;
18 sha256 = "be27633e7509e58391f10207cd32b2a6cf5b908f92d9cd30da2e514e1137af61";
19 };
20
21 patches = [
22 (substituteAll {
23 src = ./hardcode-git-path.patch;
24 inherit git;
25 })
26 ];
27
28 propagatedBuildInputs = [ gitdb ddt ];
29
30 # Tests require a git repo
31 doCheck = false;
32 pythonImportsCheck = [ "git" ];
33
34 meta = with lib; {
35 description = "Python Git Library";
36 homepage = "https://github.com/gitpython-developers/GitPython";
37 license = licenses.bsd3;
38 maintainers = with maintainers; [ fab ];
39 };
40}