python311Packages.flake8-future-import: modernize

This commit is contained in:
Peder Bergebakken Sundt 2024-08-12 03:59:26 +02:00
parent bd15d3a0e9
commit 189b5c2581

View File

@ -6,6 +6,7 @@
isPy38,
isPy39,
pythonAtLeast,
setuptools,
flake8,
six,
python,
@ -14,7 +15,7 @@
buildPythonPackage rec {
pname = "flake8-future-import";
version = "0.4.7";
format = "setuptools";
pyproject = true;
# PyPI tarball doesn't include the test suite
src = fetchFromGitHub {
@ -36,10 +37,12 @@ buildPythonPackage rec {
postPatch = ''
substituteInPlace "test_flake8_future_import.py" \
--replace "'flake8'" "'${lib.getExe flake8}'"
--replace-fail "'flake8'" "'${lib.getExe flake8}'"
'';
propagatedBuildInputs = [ flake8 ];
build-system = [ setuptools ];
dependencies = [ flake8 ];
nativeCheckInputs = [ six ];