1{ lib, buildPythonPackage, fetchPypi, git, gitdb2, mock, nose, ddt }:
2
3buildPythonPackage rec {
4 version = "2.1.11";
5 pname = "GitPython";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "8237dc5bfd6f1366abeee5624111b9d6879393d84745a507de0fda86043b65a8";
10 };
11
12 checkInputs = [ mock nose ddt ];
13 propagatedBuildInputs = [ gitdb2 ];
14
15 postPatch = ''
16 sed -i "s|^refresh()$|refresh(path='${git}/bin/git')|" git/__init__.py
17 '';
18
19 # Tests require a git repo
20 doCheck = false;
21
22 meta = {
23 description = "Python Git Library";
24 maintainers = [ ];
25 homepage = https://github.com/gitpython-developers/GitPython;
26 license = lib.licenses.bsd3;
27 };
28}