From 5f4c4aa31b1ca57fb84dbfdbb7aa73578a4967b5 Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Sat, 24 Aug 2024 18:50:25 +0200 Subject: [PATCH] python312Packages.pytest-pylint: modernize --- .../development/python-modules/pytest-pylint/default.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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 ];