1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 gitMinimal, 6 replaceVars, 7 setuptools, 8}: 9 10buildPythonPackage rec { 11 pname = "setuptools-git"; 12 version = "1.2"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "msabramo"; 17 repo = "setuptools-git"; 18 tag = version; 19 hash = "sha256-dbQ15y62nanuWgh2puLYSio391Ja3SF+HrafvTBVNbk="; 20 }; 21 22 patches = [ 23 (replaceVars ./hardcode-git-path.patch { 24 git = lib.getExe gitMinimal; 25 }) 26 ]; 27 28 build-system = [ setuptools ]; 29 30 doCheck = false; 31 32 meta = { 33 description = "Setuptools revision control system plugin for Git"; 34 homepage = "https://github.com/msabramo/setuptools-git"; 35 license = lib.licenses.bsd3; 36 }; 37}