1{ lib, buildPythonPackage, fetchPypi, isPy27, substituteAll, 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 patches = [
13 (substituteAll {
14 src = ./hardcode-git-path.patch;
15 inherit git;
16 })
17 ];
18
19 checkInputs = [ nose ] ++ lib.optional isPy27 mock;
20 propagatedBuildInputs = [ gitdb2 ddt ];
21
22 # Tests require a git repo
23 doCheck = false;
24
25 meta = {
26 description = "Python Git Library";
27 maintainers = [ ];
28 homepage = https://github.com/gitpython-developers/GitPython;
29 license = lib.licenses.bsd3;
30 };
31}