nixpkgs/pkgs/by-name/dj/djlint/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

52 lines
998 B
Nix
Raw Normal View History

2023-08-19 08:24:07 +00:00
{ lib
, python3
, fetchFromGitHub
}:
python3.pkgs.buildPythonApplication rec {
pname = "djlint";
2024-09-04 14:56:22 +00:00
version = "1.35.2";
2023-12-28 11:28:40 +00:00
pyproject = true;
2023-08-19 08:24:07 +00:00
src = fetchFromGitHub {
owner = "Riverside-Healthcare";
repo = "djlint";
2024-01-18 15:13:13 +00:00
rev = "refs/tags/v${version}";
2024-09-04 14:56:22 +00:00
hash = "sha256-KdIK6SgOQiNc13Nzg6MI38BdkBdEClnMn1RcWvngP+A=";
2023-08-19 08:24:07 +00:00
};
2024-07-08 21:05:24 +00:00
build-system = with python3.pkgs; [
2024-01-18 15:13:13 +00:00
poetry-core
];
pythonRelaxDeps = [
"pathspec"
2024-07-08 21:05:24 +00:00
"regex"
2023-08-19 08:24:07 +00:00
];
2024-07-08 21:05:24 +00:00
dependencies = with python3.pkgs; [
2023-08-19 08:24:07 +00:00
click
colorama
cssbeautifier
html-tag-names
html-void-elements
jsbeautifier
json5
pathspec
pyyaml
regex
tomli
tqdm
];
pythonImportsCheck = [ "djlint" ];
2024-07-08 21:05:24 +00:00
meta = {
2023-08-19 08:24:07 +00:00
description = "HTML Template Linter and Formatter. Django - Jinja - Nunjucks - Handlebars - GoLang";
mainProgram = "djlint";
2023-08-19 08:24:07 +00:00
homepage = "https://github.com/Riverside-Healthcare/djlint";
2024-07-08 21:05:24 +00:00
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ traxys ];
2023-08-19 08:24:07 +00:00
};
}