python311Packages.flake8-polyfill: modernize

This commit is contained in:
Peder Bergebakken Sundt
2024-08-13 17:55:06 +02:00
parent 189b5c2581
commit 6586493ba4
@@ -3,6 +3,7 @@
buildPythonPackage,
fetchpatch,
fetchPypi,
setuptools,
flake8,
mock,
pep8,
@@ -12,14 +13,16 @@
buildPythonPackage rec {
pname = "flake8-polyfill";
version = "1.0.2";
format = "setuptools";
pyproject = true;
src = fetchPypi {
inherit pname version;
sha256 = "1nlf1mkqw856vi6782qcglqhaacb23khk9wkcgn55npnjxshhjz4";
};
propagatedBuildInputs = [ flake8 ];
build-system = [ setuptools ];
dependencies = [ flake8 ];
nativeCheckInputs = [
mock
@@ -39,7 +42,7 @@ buildPythonPackage rec {
postPatch = ''
# Failed: [pytest] section in setup.cfg files is no longer supported, change to [tool:pytest] instead.
substituteInPlace setup.cfg \
--replace pytest 'tool:pytest'
--replace-fail pytest 'tool:pytest'
'';
pythonImportsCheck = [ "flake8_polyfill" ];