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