Unverified Commit 70a9c381 authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

Merge pull request #250175 from traxys/djlint

djlint: init at 1.32.1
parents 6b7d60a6 08d84537
Loading
Loading
Loading
Loading
+35 −0
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchPypi
, setuptools
, jsbeautifier
}:

buildPythonPackage rec {
  pname = "cssbeautifier";
  version = "1.14.9";
  format = "pyproject";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-LaQyRy9oFw64VK/5exaiRyH1CQ7javLjEZlZConn9x8=";
  };

  nativeBuildInputs = [
    setuptools
  ];

  propagatedBuildInputs = [ jsbeautifier ];

  # has no tests
  doCheck = false;

  pythonImportsCheck = [ "cssbeautifier" ];

  meta = with lib; {
    description = "CSS unobfuscator and beautifier";
    homepage = "https://pypi.org/project/cssbeautifier/";
    license = licenses.mit;
    maintainers = with maintainers; [ traxys ];
  };
}
+34 −0
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
}:

buildPythonPackage rec {
  pname = "html-tag-names";
  version = "0.1.2";
  format = "pyproject";

  src = fetchFromGitHub {
    owner = "Riverside-Healthcare";
    repo = "html-tag-names";
    rev = version;
    hash = "sha256-2YywP4/0yocejuJwanC5g9BR7mcy5C+zMhCjNZ9FRH4=";
  };

  nativeBuildInputs = [
    poetry-core
  ];

  # has no tests
  doCheck = false;

  pythonImportsCheck = [ "HtmlTagNames" ];

  meta = with lib; {
    description = "List of known HTML tags";
    homepage = "https://github.com/Riverside-Healthcare/html-tag-names";
    license = licenses.gpl3Only;
    maintainers = with maintainers; [ traxys ];
  };
}
+34 −0
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
}:

buildPythonPackage rec {
  pname = "html-void-elements";
  version = "0.1.0";
  format = "pyproject";

  src = fetchFromGitHub {
    owner = "Riverside-Healthcare";
    repo = "html-void-elements";
    rev = version;
    hash = "sha256-Q5OEczTdgCCyoOsKv3MKRE3w4t/qyPG4YKbF19jlC88=";
  };

  nativeBuildInputs = [
    poetry-core
  ];

  # has no tests
  doCheck = false;

  pythonImportsCheck = [ "HtmlVoidElements" ];

  meta = with lib; {
    description = "List of HTML void tag names";
    homepage = "https://github.com/Riverside-Healthcare/html-void-elements";
    license = licenses.gpl3Only;
    maintainers = with maintainers; [ traxys ];
  };
}
+45 −0
Original line number Diff line number Diff line
{ lib
, python3
, fetchFromGitHub
}:

python3.pkgs.buildPythonApplication rec {
  pname = "djlint";
  version = "1.32.1";
  format = "pyproject";

  src = fetchFromGitHub {
    owner = "Riverside-Healthcare";
    repo = "djlint";
    rev = "v${version}";
    hash = "sha256-///ZEkVohioloBJn6kxpEK5wmCzMp9ZYeAH1mONOA0E=";
  };

  nativeBuildInputs = [
    python3.pkgs.poetry-core
  ];

  propagatedBuildInputs = with python3.pkgs; [
    click
    colorama
    cssbeautifier
    html-tag-names
    html-void-elements
    jsbeautifier
    json5
    pathspec
    pyyaml
    regex
    tomli
    tqdm
  ];

  pythonImportsCheck = [ "djlint" ];

  meta = with lib; {
    description = "HTML Template Linter and Formatter. Django - Jinja - Nunjucks - Handlebars - GoLang";
    homepage = "https://github.com/Riverside-Healthcare/djlint";
    license = licenses.gpl3Only;
    maintainers = with maintainers; [ traxys ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -17363,6 +17363,8 @@ with pkgs;
  devspace = callPackage ../development/tools/misc/devspace { };
  djlint = callPackage ../development/tools/djlint { };
  leptosfmt = callPackage ../development/tools/rust/leptosfmt { };
  maturin = callPackage ../development/tools/rust/maturin {
Loading