mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-13 11:30:35 +08:00
test_misencodedFileUTF16 fails with PyPy3 as it outputs a different
error message than CPython.
(cherry picked from commit 20d8a653d0)
45 lines
1.0 KiB
Nix
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 ];
|
|
};
|
|
}
|