Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 773 B view raw
1{ lib, buildPythonPackage, fetchPypi, isPy27, substituteAll, git, gitdb, mock, nose, ddt }: 2 3buildPythonPackage rec { 4 version = "3.1.7"; 5 pname = "GitPython"; 6 disabled = isPy27; # no longer supported 7 8 src = fetchPypi { 9 inherit pname version; 10 sha256 = "2db287d71a284e22e5c2846042d0602465c7434d910406990d5b74df4afb0858"; 11 }; 12 13 patches = [ 14 (substituteAll { 15 src = ./hardcode-git-path.patch; 16 inherit git; 17 }) 18 ]; 19 20 checkInputs = [ nose ] ++ lib.optional isPy27 mock; 21 propagatedBuildInputs = [ gitdb ddt ]; 22 23 # Tests require a git repo 24 doCheck = false; 25 26 meta = { 27 description = "Python Git Library"; 28 maintainers = [ ]; 29 homepage = "https://github.com/gitpython-developers/GitPython"; 30 license = lib.licenses.bsd3; 31 }; 32}