1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pythonOlder
5, poetry-core
6}:
7
8buildPythonPackage rec {
9 pname = "ttp-templates";
10 version = "0.3.5";
11 format = "pyproject";
12
13 disabled = pythonOlder "3.7";
14
15 src = fetchFromGitHub {
16 owner = "dmulyalin";
17 repo = "ttp_templates";
18 rev = "refs/tags/${version}";
19 hash = "sha256-NlTTydGdjn+hwAKYEyINg/9k/EdnLq2gU9cnujpZQLM=";
20 };
21
22 nativeBuildInputs = [
23 poetry-core
24 ];
25
26 postPatch = ''
27 # Drop circular dependency on ttp
28 sed -i '/ttp =/d' pyproject.toml
29 '';
30
31 # Circular dependency on ttp
32 doCheck = false;
33
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 };
41}