1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 setuptools, 6 pylint, 7 pytest, 8 pytestCheckHook, 9 pythonOlder, 10 toml, 11}: 12 13buildPythonPackage rec { 14 pname = "pytest-pylint"; 15 version = "0.21.0"; 16 pyproject = true; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchPypi { 21 inherit pname version; 22 hash = "sha256-iHZLjh1c+hiAkkjgzML8BQNfCMNfCwIi3c/qHDxOVT4="; 23 }; 24 25 postPatch = '' 26 substituteInPlace setup.py \ 27 --replace-fail "pytest-runner" "" 28 ''; 29 30 build-system = [ setuptools ]; 31 32 buildInputs = [ pytest ]; 33 34 dependencies = [ 35 pylint 36 toml 37 ]; 38 39 nativeCheckInputs = [ pytestCheckHook ]; 40 41 pythonImportsCheck = [ "pytest_pylint" ]; 42 43 meta = with lib; { 44 description = "Pytest plugin to check source code with pylint"; 45 homepage = "https://github.com/carsongee/pytest-pylint"; 46 license = licenses.mit; 47 maintainers = [ ]; 48 }; 49}