Unverified Commit 2bbc129e authored by Yohann Boniface's avatar Yohann Boniface Committed by GitHub
Browse files

python3Packages.j2lint: init at 1.2.0 (#442200)

parents 8e102496 066306ac
Loading
Loading
Loading
Loading
+43 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  jinja2,
  setuptools,
  fetchFromGitHub,
  rich,
  versionCheckHook,
  pytestCheckHook,
  pytest-cov-stub,
}:

buildPythonPackage rec {
  pname = "j2lint";
  version = "1.2.0";
  pyproject = true;
  src = fetchFromGitHub {
    owner = "aristanetworks";
    repo = "j2lint";
    rev = "v${version}";
    hash = "sha256-/3hd2RnyxX4CsqWvsmGB/5QoeQIsFhtG3nntHer0or8=";
  };

  build-system = [ setuptools ];
  dependencies = [
    jinja2
    rich
  ];

  nativeCheckInputs = [
    pytest-cov-stub
    pytestCheckHook
    versionCheckHook
  ];
  versionCheckProgramArg = "--version";

  meta = with lib; {
    homepage = "https://github.com/aristanetworks/j2lint";
    description = "Jinja2 Linter CLI";
    license = licenses.mit;
    maintainers = with maintainers; [ polyfloyd ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -14864,6 +14864,8 @@ with pkgs;

  j2cli = with python311Packages; toPythonApplication j2cli;

  j2lint = with python3Packages; toPythonApplication j2lint;

  kmonad = haskellPackages.kmonad.bin;

  # In general we only want keep the last three minor versions around that
+2 −0
Original line number Diff line number Diff line
@@ -7323,6 +7323,8 @@ self: super: with self; {
  j2cli = callPackage ../development/python-modules/j2cli { };
  j2lint = callPackage ../development/python-modules/j2lint { };
  jaconv = callPackage ../development/python-modules/jaconv { };
  jalali-core = callPackage ../development/python-modules/jalali-core { };