nixpkgs/pkgs/development/tools/djhtml/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
688 B
Nix
Raw Normal View History

2023-03-13 15:12:21 +00:00
{ lib
, buildPythonApplication
, fetchFromGitHub
2024-11-01 14:13:13 +00:00
, setuptools
2023-03-13 15:12:21 +00:00
}:
buildPythonApplication rec {
pname = "djhtml";
2024-10-23 05:35:59 +00:00
version = "3.0.7";
2024-11-01 14:13:13 +00:00
pyproject = true;
2023-03-13 15:12:21 +00:00
src = fetchFromGitHub {
owner = "rtts";
2024-11-01 14:13:13 +00:00
repo = "djhtml";
2024-01-24 13:45:43 +00:00
rev = "refs/tags/${version}";
2024-10-23 05:35:59 +00:00
hash = "sha256-W93J3UFUrCqT718zoGcu96ORYFt0NLyYP7iVWbr8FYo=";
2023-03-13 15:12:21 +00:00
};
2024-11-01 14:13:13 +00:00
build-system = [ setuptools ];
2023-03-13 15:12:21 +00:00
pythonImportsCheck = [ "djhtml" ];
meta = with lib; {
homepage = "https://github.com/rtts/djhtml";
description = "Django/Jinja template indenter";
2024-11-01 14:13:13 +00:00
changelog = "https://github.com/rtts/djhtml/releases/tag/${version}";
2023-03-13 15:12:21 +00:00
license = licenses.gpl3Plus;
maintainers = [ ];
2024-11-01 14:13:13 +00:00
mainProgram = "djhtml";
2023-03-13 15:12:21 +00:00
};
}