From e7498472a6fd40e887adc7233d3d06a102d3a50b Mon Sep 17 00:00:00 2001 From: natsukium Date: Thu, 11 May 2023 12:36:26 +0900 Subject: [PATCH] python3Packages.flake8-future-import: fix tests --- .../python-modules/flake8-future-import/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/flake8-future-import/default.nix b/pkgs/development/python-modules/flake8-future-import/default.nix index 7a3f4dbd805a..e4549470d953 100644 --- a/pkgs/development/python-modules/flake8-future-import/default.nix +++ b/pkgs/development/python-modules/flake8-future-import/default.nix @@ -33,6 +33,11 @@ buildPythonPackage rec { ./skip-test.patch ]; + postPatch = '' + substituteInPlace "test_flake8_future_import.py" \ + --replace "'flake8'" "'${lib.getExe flake8}'" + ''; + propagatedBuildInputs = [ flake8 ]; nativeCheckInputs = [ six ];