Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib
2, buildPythonApplication
3, fetchFromGitHub
4, pythonOlder
5}:
6buildPythonApplication rec {
7 pname = "djhtml";
8 version = "3.0.6";
9
10 format = "setuptools";
11 disabled = pythonOlder "3.7";
12
13 src = fetchFromGitHub {
14 owner = "rtts";
15 repo = pname;
16 rev = "refs/tags/${version}";
17 hash = "sha256-3bviLyTLpHcAUWAaAmNZukWBDwFs8yFOAxl2bSk9GNY=";
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 = [ ];
27 };
28}