mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-04 22:10:14 +00:00
https://github.com/djlint/djLint/releases/tag/v1.43.1 This also changes the license field to match the projects pyproject.toml file
50 lines
1013 B
Nix
50 lines
1013 B
Nix
{
|
|
lib,
|
|
python3,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication (finalAttrs: {
|
|
pname = "djlint";
|
|
version = "1.43.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "djlint";
|
|
repo = "djlint";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-Pw6EIlRJsHK5B1+WD59HzU2Fi6VzPmFXBauypqUwD+I=";
|
|
};
|
|
|
|
build-system = with python3.pkgs; [
|
|
hatchling
|
|
];
|
|
|
|
pythonRelaxDeps = [
|
|
"pathspec"
|
|
"regex"
|
|
];
|
|
|
|
dependencies = with python3.pkgs; [
|
|
click
|
|
cssbeautifier
|
|
jsbeautifier
|
|
json5
|
|
pathspec
|
|
pyyaml
|
|
regex
|
|
tomli
|
|
];
|
|
|
|
pythonImportsCheck = [ "djlint" ];
|
|
|
|
meta = {
|
|
description = "HTML Template Linter and Formatter. Django - Jinja - Nunjucks - Handlebars - GoLang";
|
|
mainProgram = "djlint";
|
|
homepage = "https://github.com/djlint/djLint";
|
|
license = lib.licenses.gpl3Plus;
|
|
changelog = "https://github.com/djlint/djLint/blob/v${finalAttrs.version}/CHANGELOG.md";
|
|
maintainers = with lib.maintainers; [ traxys ];
|
|
};
|
|
})
|