depot/third_party/nixpkgs/pkgs/development/python-modules/gitdb/default.nix
Default email 83405b6dd2 Project import generated by Copybara.
GitOrigin-RevId: ac718d02867a84b42522a0ece52d841188208f2c
2023-03-15 17:39:30 +01:00

33 lines
640 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, smmap
, isPy3k
}:
buildPythonPackage rec {
pname = "gitdb";
version = "4.0.10";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
hash = "sha256-brmQtp304VutiZ6oaNxGVyw/dTOXNWY7gd55sG8X65o=";
};
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;
};
}