1{ lib
2, buildPythonPackage
3, fetchPypi
4}:
5
6buildPythonPackage rec {
7 pname = "ttp-templates";
8 version = "0.1.1";
9 format = "setuptools";
10
11 src = fetchPypi {
12 pname = "ttp_templates";
13 inherit version;
14 sha256 = "0vg7k733i8jqnfz8mpq8kzr2l7b7drk29zkzik91029f6w7li007";
15 };
16
17 # drop circular dependency on ttp
18 postPatch = ''
19 substituteInPlace setup.py --replace '"ttp>=0.6.0"' ""
20 '';
21
22 # circular dependency on ttp
23 doCheck = false;
24
25 meta = with lib; {
26 description = "Template Text Parser Templates";
27 homepage = "https://github.com/dmulyalin/ttp_templates";
28 license = licenses.mit;
29 maintainers = with maintainers; [ hexa ];
30 };
31}