1{ lib
2, buildPythonApplication
3, fetchFromGitHub
4, pythonOlder
5}:
6buildPythonApplication rec {
7 pname = "djhtml";
8 version = "3.0.5";
9
10 format = "setuptools";
11 disabled = pythonOlder "3.7";
12
13 src = fetchFromGitHub {
14 owner = "rtts";
15 repo = pname;
16 rev = version;
17 hash = "sha256-m13lw1x+URAYuDc0gXRIxfRnd6kQxeAuLDqYXeOgQE0=";
18 };
19
20 pythonImportsCheck = [ "djhtml" ];
21
22 meta = with lib; {
23 homepage = "https://github.com/rtts/djhtml";
24 description = "Django/Jinja template indenter";
25 license = licenses.gpl3Plus;
26 maintainers = with maintainers; [ thubrecht ];
27 };
28}