diff --git a/pkgs/development/python-modules/flake8/default.nix b/pkgs/development/python-modules/flake8/default.nix index 624f36a7447a..6f2a8c49d570 100644 --- a/pkgs/development/python-modules/flake8/default.nix +++ b/pkgs/development/python-modules/flake8/default.nix @@ -1,6 +1,7 @@ { lib, buildPythonPackage, + isPyPy, pythonOlder, fetchFromGitHub, setuptools, @@ -35,6 +36,12 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ]; + disabledTests = lib.optionals isPyPy [ + # tests fail due to slightly different error position + "test_tokenization_error_is_a_syntax_error" + "test_tokenization_error_but_not_syntax_error" + ]; + meta = with lib; { changelog = "https://github.com/PyCQA/flake8/blob/${src.rev}/docs/source/release-notes/${version}.rst"; description = "Modular source code checker: pep8, pyflakes and co"; diff --git a/pkgs/development/python-modules/pyflakes/default.nix b/pkgs/development/python-modules/pyflakes/default.nix index 4550ca77e02b..04534f99c58d 100644 --- a/pkgs/development/python-modules/pyflakes/default.nix +++ b/pkgs/development/python-modules/pyflakes/default.nix @@ -1,6 +1,7 @@ { lib, buildPythonPackage, + isPyPy, pythonAtLeast, pythonOlder, fetchFromGitHub, @@ -27,10 +28,17 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ]; - disabledTests = lib.optionals (pythonAtLeast "3.13") [ - # https://github.com/PyCQA/pyflakes/issues/812 - "test_errors_syntax" - ]; + disabledTests = + lib.optionals (pythonAtLeast "3.13") [ + # https://github.com/PyCQA/pyflakes/issues/812 + "test_errors_syntax" + ] + ++ lib.optionals isPyPy [ + # https://github.com/PyCQA/pyflakes/issues/779 + "test_eofSyntaxError" + "test_misencodedFileUTF8" + "test_multilineSyntaxError" + ]; pythonImportsCheck = [ "pyflakes" ];