Skip to content

Commit f38c6ad

Browse files
committed
python312Packages.pypugjs: modernize
1 parent b5319b2 commit f38c6ad

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

pkgs/development/python-modules/pypugjs/default.nix

+15-2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
fetchFromGitHub,
77
jinja2,
88
mako,
9+
poetry-core,
910
pyramid,
1011
pyramid-mako,
1112
pytestCheckHook,
@@ -16,7 +17,7 @@
1617
buildPythonPackage rec {
1718
pname = "pypugjs";
1819
version = "5.12.0";
19-
format = "setuptools";
20+
pyproject = true;
2021

2122
src = fetchFromGitHub {
2223
owner = "kakulukia";
@@ -25,11 +26,19 @@ buildPythonPackage rec {
2526
hash = "sha256-JHZzyEilCjpZFIrl5kk1oJ4C/vgQTfVoRRGBK+DuHAE=";
2627
};
2728

28-
propagatedBuildInputs = [
29+
build-system = [
30+
poetry-core
31+
];
32+
33+
dependencies = [
2934
six
3035
charset-normalizer
3136
];
3237

38+
pythonRelaxDeps = [
39+
"charset-normalizer"
40+
];
41+
3342
nativeCheckInputs = [
3443
django
3544
jinja2
@@ -42,6 +51,10 @@ buildPythonPackage rec {
4251

4352
pytestCheckFlags = [ "pypugjs/testsuite" ];
4453

54+
pythonImportsCheck = [
55+
"pypugjs"
56+
];
57+
4558
meta = with lib; {
4659
description = "PugJS syntax template adapter for Django, Jinja2, Mako and Tornado templates";
4760
mainProgram = "pypugjs";

0 commit comments

Comments
 (0)