Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / pytest-pylint / default.nix
blobc989948afd8c194cfc274a154f4018b3c4c082c8
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , pylint
5 , pytest
6 , pytestCheckHook
7 , pythonOlder
8 , toml
9 }:
11 buildPythonPackage rec {
12   pname = "pytest-pylint";
13   version = "0.21.0";
14   format = "setuptools";
16   disabled = pythonOlder "3.7";
18   src = fetchPypi {
19     inherit pname version;
20     hash = "sha256-iHZLjh1c+hiAkkjgzML8BQNfCMNfCwIi3c/qHDxOVT4=";
21   };
23   postPatch = ''
24     substituteInPlace setup.py \
25       --replace "pytest-runner" ""
26   '';
28   buildInputs = [
29     pytest
30   ];
32   propagatedBuildInputs = [
33     pylint
34     toml
35   ];
37   nativeCheckInputs = [
38     pytestCheckHook
39   ];
41   pythonImportsCheck = [
42     "pytest_pylint"
43   ];
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   };