@@ -1,4 +1,4 @@
1−{ lib, buildPythonPackage, fetchPypi, git, gitdb2, mock, nose, ddt }:
1+{ lib, buildPythonPackage, fetchPypi, substituteAll, git, gitdb2, mock, nose, ddt }:
22
33buildPythonPackage rec {
44 version = "2.1.11";
@@ -9,13 +9,16 @@ buildPythonPackage rec {
99 sha256 = "8237dc5bfd6f1366abeee5624111b9d6879393d84745a507de0fda86043b65a8";
1010 };
1111
12+ patches = [
13+ (substituteAll {
14+ src = ./hardcode-git-path.patch;
15+ inherit git;
16+ })
17+ ];
18+
1219 checkInputs = [ mock nose ddt ];
1320 propagatedBuildInputs = [ gitdb2 ];
1421
15− postPatch = ''
16− sed -i "s|^refresh()$|refresh(path='${git}/bin/git')|" git/__init__.py
17− '';
18−
1922 # Tests require a git repo
2023 doCheck = false;
2124