Skip to content

Commit

Permalink
djhtml: refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
natsukium committed Nov 1, 2024
1 parent 13202af commit f3305a5
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions pkgs/development/tools/djhtml/default.nix
Original file line number Diff line number Diff line change
@@ -1,28 +1,30 @@
{ lib
, buildPythonApplication
, fetchFromGitHub
, pythonOlder
, setuptools
}:
buildPythonApplication rec {
pname = "djhtml";
version = "3.0.7";

format = "setuptools";
disabled = pythonOlder "3.7";
pyproject = true;

src = fetchFromGitHub {
owner = "rtts";
repo = pname;
repo = "djhtml";
rev = "refs/tags/${version}";
hash = "sha256-W93J3UFUrCqT718zoGcu96ORYFt0NLyYP7iVWbr8FYo=";
};

build-system = [ setuptools ];

pythonImportsCheck = [ "djhtml" ];

meta = with lib; {
homepage = "https://github.com/rtts/djhtml";
description = "Django/Jinja template indenter";
changelog = "https://github.com/rtts/djhtml/releases/tag/${version}";
license = licenses.gpl3Plus;
maintainers = [ ];
mainProgram = "djhtml";
};
}

0 comments on commit f3305a5

Please sign in to comment.