1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonOlder, 6 poetry-core, 7}: 8 9buildPythonPackage rec { 10 pname = "ttp-templates"; 11 version = "0.3.7"; 12 format = "pyproject"; 13 14 disabled = pythonOlder "3.7"; 15 16 src = fetchFromGitHub { 17 owner = "dmulyalin"; 18 repo = "ttp_templates"; 19 tag = version; 20 hash = "sha256-Pntm/wUv/K0ci8U/+nBUVszuX8KT95gyp+i2N6NshKo="; 21 }; 22 23 nativeBuildInputs = [ poetry-core ]; 24 25 postPatch = '' 26 # Drop circular dependency on ttp 27 sed -i '/ttp =/d' pyproject.toml 28 ''; 29 30 # Circular dependency on ttp 31 doCheck = false; 32 33 meta = with lib; { 34 description = "Template Text Parser Templates collections"; 35 homepage = "https://github.com/dmulyalin/ttp_templates"; 36 changelog = "https://github.com/dmulyalin/ttp_templates/releases/tag/${version}"; 37 license = licenses.mit; 38 maintainers = with maintainers; [ fab ]; 39 }; 40}