1{
2 lib,
3 buildPythonPackage,
4 charset-normalizer,
5 django,
6 fetchFromGitHub,
7 jinja2,
8 mako,
9 poetry-core,
10 pyramid,
11 pyramid-mako,
12 pytestCheckHook,
13 six,
14 tornado,
15}:
16
17buildPythonPackage rec {
18 pname = "pypugjs";
19 version = "5.12.0";
20 pyproject = true;
21
22 src = fetchFromGitHub {
23 owner = "kakulukia";
24 repo = "pypugjs";
25 tag = "v${version}";
26 hash = "sha256-JHZzyEilCjpZFIrl5kk1oJ4C/vgQTfVoRRGBK+DuHAE=";
27 };
28
29 build-system = [
30 poetry-core
31 ];
32
33 dependencies = [
34 six
35 charset-normalizer
36 ];
37
38 pythonRelaxDeps = [
39 "charset-normalizer"
40 ];
41
42 nativeCheckInputs = [
43 django
44 jinja2
45 mako
46 tornado
47 pyramid
48 pyramid-mako
49 pytestCheckHook
50 ];
51
52 pytestCheckFlags = [ "pypugjs/testsuite" ];
53
54 pythonImportsCheck = [
55 "pypugjs"
56 ];
57
58 meta = with lib; {
59 description = "PugJS syntax template adapter for Django, Jinja2, Mako and Tornado templates";
60 mainProgram = "pypugjs";
61 homepage = "https://github.com/kakulukia/pypugjs";
62 license = licenses.mit;
63 maintainers = with maintainers; [ lopsided98 ];
64 };
65}