nixpkgs/pkgs/development/python-modules/gitdb/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
654 B
Nix
Raw Normal View History

2020-03-14 16:00:10 +00:00
{ lib
, buildPythonPackage
, fetchPypi
, smmap
, isPy3k
}:
buildPythonPackage rec {
pname = "gitdb";
2021-11-25 22:46:47 +00:00
version = "4.0.9";
2020-03-14 16:00:10 +00:00
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
2021-11-25 22:46:47 +00:00
sha256 = "bac2fd45c0a1c9cf619e63a90d62bdc63892ef92387424b855792a6cabe789aa";
};
propagatedBuildInputs = [ smmap ];
postPatch = ''
substituteInPlace setup.py --replace ",<4" ""
'';
# Bunch of tests fail because they need an actual git repo
doCheck = false;
meta = {
description = "Git Object Database";
maintainers = [ ];
homepage = "https://github.com/gitpython-developers/gitdb";
license = lib.licenses.bsd3;
};
}