2020-03-14 17:00:41 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy27, substituteAll, git, gitdb, mock, nose, ddt }:
|
2018-05-12 16:52:04 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2020-03-14 17:02:40 +01:00
|
|
|
version = "3.1.0";
|
2018-05-12 16:52:04 +02:00
|
|
|
pname = "GitPython";
|
2019-10-27 00:40:15 +02:00
|
|
|
disabled = isPy27; # no longer supported
|
2018-05-12 16:52:04 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-03-14 17:02:40 +01:00
|
|
|
sha256 = "1jzllsy9lwc9yibccgv7h9naxisazx2n3zmpy21c8n5xhysw69p4";
|
2018-05-12 16:52:04 +02:00
|
|
|
};
|
|
|
|
|
2019-01-24 10:09:20 +01:00
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./hardcode-git-path.patch;
|
|
|
|
inherit git;
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2019-01-24 10:27:11 +01:00
|
|
|
checkInputs = [ nose ] ++ lib.optional isPy27 mock;
|
2020-03-14 17:00:41 +01:00
|
|
|
propagatedBuildInputs = [ gitdb ddt ];
|
2018-05-12 16:52:04 +02:00
|
|
|
|
|
|
|
# Tests require a git repo
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Python Git Library";
|
|
|
|
maintainers = [ ];
|
|
|
|
homepage = https://github.com/gitpython-developers/GitPython;
|
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|