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