Unverified Commit f3305a50 authored by natsukium's avatar natsukium
Browse files

djhtml: refactor

parent 13202afc
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
{ 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";
  };
}