anki-bin: 24.06.3 -> 24.11 (#360722)
[NixPkgs.git] / pkgs / development / python-modules / pytest-pylint / default.nix
blob5df06f4dbc35bf0a442ffc7bd3551c250bb1aef4
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   setuptools,
6   pylint,
7   pytest,
8   pytestCheckHook,
9   pythonOlder,
10   toml,
13 buildPythonPackage rec {
14   pname = "pytest-pylint";
15   version = "0.21.0";
16   pyproject = true;
18   disabled = pythonOlder "3.7";
20   src = fetchPypi {
21     inherit pname version;
22     hash = "sha256-iHZLjh1c+hiAkkjgzML8BQNfCMNfCwIi3c/qHDxOVT4=";
23   };
25   postPatch = ''
26     substituteInPlace setup.py \
27       --replace-fail "pytest-runner" ""
28   '';
30   build-system = [ setuptools ];
32   buildInputs = [ pytest ];
34   dependencies = [
35     pylint
36     toml
37   ];
39   nativeCheckInputs = [ pytestCheckHook ];
41   pythonImportsCheck = [ "pytest_pylint" ];
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   };