lol
1{ lib
2, python3
3, fetchFromGitHub
4}:
5
6python3.pkgs.buildPythonApplication rec {
7 pname = "djlint";
8 version = "1.32.1";
9 format = "pyproject";
10
11 src = fetchFromGitHub {
12 owner = "Riverside-Healthcare";
13 repo = "djlint";
14 rev = "v${version}";
15 hash = "sha256-///ZEkVohioloBJn6kxpEK5wmCzMp9ZYeAH1mONOA0E=";
16 };
17
18 nativeBuildInputs = [
19 python3.pkgs.poetry-core
20 ];
21
22 propagatedBuildInputs = with python3.pkgs; [
23 click
24 colorama
25 cssbeautifier
26 html-tag-names
27 html-void-elements
28 jsbeautifier
29 json5
30 pathspec
31 pyyaml
32 regex
33 tomli
34 tqdm
35 ];
36
37 pythonImportsCheck = [ "djlint" ];
38
39 meta = with lib; {
40 description = "HTML Template Linter and Formatter. Django - Jinja - Nunjucks - Handlebars - GoLang";
41 homepage = "https://github.com/Riverside-Healthcare/djlint";
42 license = licenses.gpl3Only;
43 maintainers = with maintainers; [ traxys ];
44 };
45}