biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / development / tools / djlint / default.nix
blobd84afa203e5b399a54636e30519f21ebd3388477
1 { lib
2 , python3
3 , fetchFromGitHub
4 }:
6 python3.pkgs.buildPythonApplication rec {
7   pname = "djlint";
8   version = "1.34.1";
9   pyproject = true;
11   src = fetchFromGitHub {
12     owner = "Riverside-Healthcare";
13     repo = "djlint";
14     rev = "refs/tags/v${version}";
15     hash = "sha256-p9RIzX9zoZxBrhiNaIeCX9OgfQm/lXNwYsh6IcsnIVk=";
16   };
18   nativeBuildInputs = with python3.pkgs; [
19     poetry-core
20     pythonRelaxDepsHook
21   ];
23   pythonRelaxDeps = [
24     "pathspec"
25   ];
27   propagatedBuildInputs = with python3.pkgs; [
28     click
29     colorama
30     cssbeautifier
31     html-tag-names
32     html-void-elements
33     jsbeautifier
34     json5
35     pathspec
36     pyyaml
37     regex
38     tomli
39     tqdm
40   ];
42   pythonImportsCheck = [ "djlint" ];
44   meta = with lib; {
45     description = "HTML Template Linter and Formatter. Django - Jinja - Nunjucks - Handlebars - GoLang";
46     mainProgram = "djlint";
47     homepage = "https://github.com/Riverside-Healthcare/djlint";
48     license = licenses.gpl3Only;
49     maintainers = with maintainers; [ traxys ];
50   };