1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pythonOlder 5, poetry-core 6}: 7 8buildPythonPackage rec { 9 pname = "ttp-templates"; 10 version = "0.3.1"; 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-35Ej76E9qy5EY41Jt2GDCldyXq7IkdqKxVFrBOJh9nE="; 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 license = licenses.mit; 38 maintainers = with maintainers; [ fab ]; 39 }; 40}