at master 818 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 jinja2, 5 setuptools, 6 fetchFromGitHub, 7 rich, 8 versionCheckHook, 9 pytestCheckHook, 10 pytest-cov-stub, 11}: 12 13buildPythonPackage rec { 14 pname = "j2lint"; 15 version = "1.2.0"; 16 pyproject = true; 17 src = fetchFromGitHub { 18 owner = "aristanetworks"; 19 repo = "j2lint"; 20 rev = "v${version}"; 21 hash = "sha256-/3hd2RnyxX4CsqWvsmGB/5QoeQIsFhtG3nntHer0or8="; 22 }; 23 24 build-system = [ setuptools ]; 25 dependencies = [ 26 jinja2 27 rich 28 ]; 29 30 nativeCheckInputs = [ 31 pytest-cov-stub 32 pytestCheckHook 33 versionCheckHook 34 ]; 35 versionCheckProgramArg = "--version"; 36 37 meta = with lib; { 38 homepage = "https://github.com/aristanetworks/j2lint"; 39 description = "Jinja2 Linter CLI"; 40 license = licenses.mit; 41 maintainers = with maintainers; [ polyfloyd ]; 42 }; 43}