pythonPackages.GitPython: set path to git executable

This commit is contained in:
Florian Klink 2018-06-11 17:07:45 +02:00
parent e3875883cc
commit cb7f7fd094
1 changed files with 5 additions and 1 deletions

View File

@ -1,4 +1,4 @@
{ lib, buildPythonPackage, fetchPypi, gitdb2, mock, nose, ddt }: { lib, buildPythonPackage, fetchPypi, git, gitdb2, mock, nose, ddt }:
buildPythonPackage rec { buildPythonPackage rec {
version = "2.1.9"; version = "2.1.9";
@ -12,6 +12,10 @@ buildPythonPackage rec {
checkInputs = [ mock nose ddt ]; checkInputs = [ mock nose ddt ];
propagatedBuildInputs = [ gitdb2 ]; propagatedBuildInputs = [ gitdb2 ];
postPatch = ''
sed -i "s|^refresh()$|refresh(path='${git}/bin/git')|" git/__init__.py
'';
# Tests require a git repo # Tests require a git repo
doCheck = false; doCheck = false;