2020-03-14 16:00:10 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, smmap
|
|
|
|
, isPy3k
|
|
|
|
}:
|
2018-05-12 14:46:59 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "gitdb";
|
2020-05-09 10:01:48 +00:00
|
|
|
version = "4.0.5";
|
2020-03-14 16:00:10 +00:00
|
|
|
disabled = !isPy3k;
|
2018-05-12 14:46:59 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-05-09 10:01:48 +00:00
|
|
|
sha256 = "c9e1f2d0db7ddb9a704c2a0217be31214e91a4fe1dea1efad19ae42ba0c285c9";
|
2018-05-12 14:46:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ smmap ];
|
|
|
|
|
2021-03-24 13:00:13 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py --replace ",<4" ""
|
|
|
|
'';
|
|
|
|
|
2018-05-12 14:46:59 +00:00
|
|
|
# Bunch of tests fail because they need an actual git repo
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Git Object Database";
|
|
|
|
maintainers = [ ];
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/gitpython-developers/gitdb";
|
2018-05-12 14:46:59 +00:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|