nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 python3,
4 fetchFromGitHub,
5}:
6
7python3.pkgs.buildPythonApplication rec {
8 pname = "djlint";
9 version = "1.36.4";
10 pyproject = true;
11
12 src = fetchFromGitHub {
13 owner = "Riverside-Healthcare";
14 repo = "djlint";
15 tag = "v${version}";
16 hash = "sha256-1DXBDVe8Ae8joJOYwwlBZB8MVubDPVhh+TiJBpL2u2M=";
17 };
18
19 build-system = with python3.pkgs; [
20 hatchling
21 ];
22
23 pythonRelaxDeps = [
24 "pathspec"
25 "regex"
26 ];
27
28 dependencies = with python3.pkgs; [
29 click
30 colorama
31 cssbeautifier
32 jsbeautifier
33 json5
34 pathspec
35 pyyaml
36 regex
37 tomli
38 tqdm
39 ];
40
41 pythonImportsCheck = [ "djlint" ];
42
43 meta = {
44 description = "HTML Template Linter and Formatter. Django - Jinja - Nunjucks - Handlebars - GoLang";
45 mainProgram = "djlint";
46 homepage = "https://github.com/Riverside-Healthcare/djlint";
47 license = lib.licenses.gpl3Only;
48 changelog = "https://github.com/djlint/djLint/blob/v${version}/CHANGELOG.md";
49 maintainers = with lib.maintainers; [ traxys ];
50 };
51}