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