2022-05-18 14:49:53 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonOlder
|
2022-08-12 12:06:08 +00:00
|
|
|
, poetry-core
|
2022-05-18 14:49:53 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ttp-templates";
|
2023-04-29 16:46:19 +00:00
|
|
|
version = "0.3.5";
|
2022-08-12 12:06:08 +00:00
|
|
|
format = "pyproject";
|
2022-05-18 14:49:53 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dmulyalin";
|
|
|
|
repo = "ttp_templates";
|
2022-06-16 17:23:12 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2023-04-29 16:46:19 +00:00
|
|
|
hash = "sha256-NlTTydGdjn+hwAKYEyINg/9k/EdnLq2gU9cnujpZQLM=";
|
2022-05-18 14:49:53 +00:00
|
|
|
};
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
postPatch = ''
|
|
|
|
# Drop circular dependency on ttp
|
2022-08-12 12:06:08 +00:00
|
|
|
sed -i '/ttp =/d' pyproject.toml
|
2022-06-16 17:23:12 +00:00
|
|
|
'';
|
2022-05-18 14:49:53 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
# Circular dependency on ttp
|
|
|
|
doCheck = false;
|
2022-05-18 14:49:53 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Template Text Parser Templates collections";
|
|
|
|
homepage = "https://github.com/dmulyalin/ttp_templates";
|
2022-12-17 10:02:37 +00:00
|
|
|
changelog = "https://github.com/dmulyalin/ttp_templates/releases/tag/${version}";
|
2022-05-18 14:49:53 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|