depot/third_party/nixpkgs/pkgs/development/python-modules/ttp-templates/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

40 lines
902 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
poetry-core,
}:
buildPythonPackage rec {
pname = "ttp-templates";
version = "0.3.6";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "dmulyalin";
repo = "ttp_templates";
rev = "refs/tags/${version}";
hash = "sha256-Pntm/wUv/K0ci8U/+nBUVszuX8KT95gyp+i2N6NshKo=";
};
nativeBuildInputs = [ poetry-core ];
postPatch = ''
# Drop circular dependency on ttp
sed -i '/ttp =/d' pyproject.toml
'';
# Circular dependency on ttp
doCheck = false;
meta = with lib; {
description = "Template Text Parser Templates collections";
homepage = "https://github.com/dmulyalin/ttp_templates";
changelog = "https://github.com/dmulyalin/ttp_templates/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}