djlint: init at 1.32.1

This commit is contained in:
traxys 2023-08-19 10:24:07 +02:00
parent cb936ef041
commit 08d8453759
2 changed files with 47 additions and 0 deletions

View File

@ -0,0 +1,45 @@
{ lib
, python3
, fetchFromGitHub
}:
python3.pkgs.buildPythonApplication rec {
pname = "djlint";
version = "1.32.1";
format = "pyproject";
src = fetchFromGitHub {
owner = "Riverside-Healthcare";
repo = "djlint";
rev = "v${version}";
hash = "sha256-///ZEkVohioloBJn6kxpEK5wmCzMp9ZYeAH1mONOA0E=";
};
nativeBuildInputs = [
python3.pkgs.poetry-core
];
propagatedBuildInputs = with python3.pkgs; [
click
colorama
cssbeautifier
html-tag-names
html-void-elements
jsbeautifier
json5
pathspec
pyyaml
regex
tomli
tqdm
];
pythonImportsCheck = [ "djlint" ];
meta = with lib; {
description = "HTML Template Linter and Formatter. Django - Jinja - Nunjucks - Handlebars - GoLang";
homepage = "https://github.com/Riverside-Healthcare/djlint";
license = licenses.gpl3Only;
maintainers = with maintainers; [ traxys ];
};
}

View File

@ -17363,6 +17363,8 @@ with pkgs;
devspace = callPackage ../development/tools/misc/devspace { };
djlint = callPackage ../development/tools/djlint { };
leptosfmt = callPackage ../development/tools/rust/leptosfmt { };
maturin = callPackage ../development/tools/rust/maturin {