python312Packages.pypugjs: modernize

This commit is contained in:
Weijia Wang 2025-04-27 17:30:18 +02:00
parent b5319b27ea
commit f38c6ad3af

View File

@ -6,6 +6,7 @@
fetchFromGitHub,
jinja2,
mako,
poetry-core,
pyramid,
pyramid-mako,
pytestCheckHook,
@ -16,7 +17,7 @@
buildPythonPackage rec {
pname = "pypugjs";
version = "5.12.0";
format = "setuptools";
pyproject = true;
src = fetchFromGitHub {
owner = "kakulukia";
@ -25,11 +26,19 @@ buildPythonPackage rec {
hash = "sha256-JHZzyEilCjpZFIrl5kk1oJ4C/vgQTfVoRRGBK+DuHAE=";
};
propagatedBuildInputs = [
build-system = [
poetry-core
];
dependencies = [
six
charset-normalizer
];
pythonRelaxDeps = [
"charset-normalizer"
];
nativeCheckInputs = [
django
jinja2
@ -42,6 +51,10 @@ buildPythonPackage rec {
pytestCheckFlags = [ "pypugjs/testsuite" ];
pythonImportsCheck = [
"pypugjs"
];
meta = with lib; {
description = "PugJS syntax template adapter for Django, Jinja2, Mako and Tornado templates";
mainProgram = "pypugjs";