Files
nixpkgs/pkgs/development/python-modules/j2lint/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

44 lines
816 B
Nix

{
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 = {
homepage = "https://github.com/aristanetworks/j2lint";
description = "Jinja2 Linter CLI";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ polyfloyd ];
};
}