3
0
Fork 0
forked from mirrors/nixpkgs

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

View file

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