git.iko.soy/typeable/nixpkgs
on master help sign in
pythonPackages.GitPython: set path to git executable
commitcb7f7fd094ec6a4c335086b1b438845ee83c2034 authorFlorian Klink <flokli@flokli.de> dateMon 11 Jun 2018, 17:07 (8 years ago) parente387588
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