Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / ttp-templates / default.nix
blob292d598e9d61c4a5423a784f17f73b077b433637
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pythonOlder
5 , poetry-core
6 }:
8 buildPythonPackage rec {
9   pname = "ttp-templates";
10   version = "0.3.6";
11   format = "pyproject";
13   disabled = pythonOlder "3.7";
15   src = fetchFromGitHub {
16     owner = "dmulyalin";
17     repo = "ttp_templates";
18     rev = "refs/tags/${version}";
19     hash = "sha256-Pntm/wUv/K0ci8U/+nBUVszuX8KT95gyp+i2N6NshKo=";
20   };
22   nativeBuildInputs = [
23     poetry-core
24   ];
26   postPatch = ''
27     # Drop circular dependency on ttp
28     sed -i '/ttp =/d' pyproject.toml
29   '';
31   # Circular dependency on ttp
32   doCheck = false;
34   meta = with lib; {
35     description = "Template Text Parser Templates collections";
36     homepage = "https://github.com/dmulyalin/ttp_templates";
37     changelog = "https://github.com/dmulyalin/ttp_templates/releases/tag/${version}";
38     license = licenses.mit;
39     maintainers = with maintainers; [ fab ];
40   };