nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 python3Packages,
4 fetchFromGitHub,
5}:
6python3Packages.buildPythonApplication rec {
7 pname = "djhtml";
8 version = "3.0.10";
9 pyproject = true;
10
11 src = fetchFromGitHub {
12 owner = "rtts";
13 repo = "djhtml";
14 tag = version;
15 hash = "sha256-7K7/Zm6ORfza9AD+Jyl+0Q5zlxgF+WpH3a1O18VpT5k=";
16 };
17
18 build-system = [ python3Packages.setuptools ];
19
20 pythonImportsCheck = [ "djhtml" ];
21
22 meta = {
23 homepage = "https://github.com/rtts/djhtml";
24 description = "Django/Jinja template indenter";
25 changelog = "https://github.com/rtts/djhtml/releases/tag/${src.tag}";
26 license = lib.licenses.gpl3Plus;
27 maintainers = [ ];
28 mainProgram = "djhtml";
29 };
30}