Files
nixpkgs/pkgs/development/python-modules/pyflakes/default.nix
Max Wipfli 32d1a8095a python3Packages.pyflakes: disable failing test for PyPy3
test_misencodedFileUTF16 fails with PyPy3 as it outputs a different
error message than CPython.

(cherry picked from commit 20d8a653d0)
2025-08-25 12:01:02 +02:00

45 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
isPyPy,
fetchFromGitHub,
setuptools,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "pyflakes";
version = "3.3.2";
pyproject = true;
src = fetchFromGitHub {
owner = "PyCQA";
repo = "pyflakes";
rev = version;
hash = "sha256-nNug9EZ0coI095/QJu/eK1Ozlt01INT+mLlYdqrJuzE=";
};
build-system = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
disabledTests = lib.optionals isPyPy [
# https://github.com/PyCQA/pyflakes/issues/779
"test_eofSyntaxError"
"test_misencodedFileUTF16"
"test_misencodedFileUTF8"
"test_multilineSyntaxError"
];
pythonImportsCheck = [ "pyflakes" ];
meta = with lib; {
homepage = "https://github.com/PyCQA/pyflakes";
changelog = "https://github.com/PyCQA/pyflakes/blob/${src.rev}/NEWS.rst";
description = "Simple program which checks Python source files for errors";
mainProgram = "pyflakes";
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
};
}