git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #41844 from flokli/gitpython-git

pythonPackages.GitPython: set path to git executable

commitc16e4570591d0f392eb12edb36cc0102e128fd38 authorFrederik Rietdijk <freddyrietdijk@fridh.nl> dateMon 11 Jun 2018, 18:43 (8 years ago) parent342d08acb7f7fd
1 file changed+5−1
pkgs/development/python-modules/GitPython/default.nix+5−1
pkgs/development/python-modules/GitPython/default.nix+5−1
@@ -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