diff --git a/pkgs/development/python-modules/pytest-pylint/default.nix b/pkgs/development/python-modules/pytest-pylint/default.nix index 7a9903def54c..5df06f4dbc35 100644 --- a/pkgs/development/python-modules/pytest-pylint/default.nix +++ b/pkgs/development/python-modules/pytest-pylint/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchPypi, + setuptools, pylint, pytest, pytestCheckHook, @@ -12,7 +13,7 @@ buildPythonPackage rec { pname = "pytest-pylint"; version = "0.21.0"; - format = "setuptools"; + pyproject = true; disabled = pythonOlder "3.7"; @@ -23,12 +24,14 @@ buildPythonPackage rec { postPatch = '' substituteInPlace setup.py \ - --replace "pytest-runner" "" + --replace-fail "pytest-runner" "" ''; + build-system = [ setuptools ]; + buildInputs = [ pytest ]; - propagatedBuildInputs = [ + dependencies = [ pylint toml ];