mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 02:42:59 +00:00
python311Packages.flake8-future-import: modernize
This commit is contained in:
parent
bd15d3a0e9
commit
189b5c2581
@ -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 ];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user