Unverified Commit 78b47caa authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

Merge pull request #231214 from natsukium/python3Packages.flake8-future-import/fix

python3Packages.flake8-future-import: fix tests
parents 0bda75b5 076d8bdd
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -33,12 +33,21 @@ buildPythonPackage rec {
    ./skip-test.patch
  ];

  postPatch = ''
    substituteInPlace "test_flake8_future_import.py" \
      --replace "'flake8'" "'${lib.getExe flake8}'"
  '';

  propagatedBuildInputs = [ flake8 ];

  nativeCheckInputs = [ six ];

  checkPhase = ''
    runHook preCheck

    ${python.interpreter} -m test_flake8_future_import

    runHook postCheck
  '';

  meta = with lib; {