mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-14 05:37:42 +00:00
djlint: init at 1.32.1
This commit is contained in:
parent
cb936ef041
commit
08d8453759
45
pkgs/development/tools/djlint/default.nix
Normal file
45
pkgs/development/tools/djlint/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user