@@ -1,4 +1,4 @@
1−{ lib, buildPythonPackage, fetchPypi, gitdb2, mock, nose, ddt }:
1+{ lib, buildPythonPackage, fetchPypi, git, gitdb2, mock, nose, ddt }:
22
33buildPythonPackage rec {
44 version = "2.1.9";
@@ -12,6 +12,10 @@ buildPythonPackage rec {
1212 checkInputs = [ mock nose ddt ];
1313 propagatedBuildInputs = [ gitdb2 ];
1414
15+ postPatch = ''
16+ sed -i "s|^refresh()$|refresh(path='${git}/bin/git')|" git/__init__.py
17+ '';
18+
1519 # Tests require a git repo
1620 doCheck = false;
1721