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-03-24 09:28:12 +00:00
|
|
|
version = "3.1.14";
|
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-03-24 09:28:12 +00:00
|
|
|
sha256 = "be27633e7509e58391f10207cd32b2a6cf5b908f92d9cd30da2e514e1137af61";
|
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
|
|
|
};
|
|
|
|
}
|