2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pythonOlder,
|
2023-05-24 13:37:59 +00:00
|
|
|
}:
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2023-05-24 13:37:59 +00:00
|
|
|
pname = "cheetah3";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "3.3.3.post1";
|
2023-05-24 13:37:59 +00:00
|
|
|
format = "setuptools";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "CheetahTemplate3";
|
|
|
|
repo = pname;
|
|
|
|
rev = "refs/tags/${version}";
|
2024-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-0NVKie/6Fp8T1O1fvrVorycybLrEXMY1yXZBDyxjpbE=";
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
doCheck = false; # Circular dependency
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "Cheetah" ];
|
2023-05-24 13:37:59 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Template engine and code generation tool";
|
2023-05-24 13:37:59 +00:00
|
|
|
homepage = "http://www.cheetahtemplate.org/";
|
|
|
|
changelog = "https://github.com/CheetahTemplate3/cheetah3/releases/tag/${version}";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ pjjw ];
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
}
|