1{
2 lib,
3 buildPythonPackage,
4 isPyPy,
5 fetchFromGitHub,
6 setuptools,
7 pytestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "pyflakes";
12 version = "3.4.0";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "PyCQA";
17 repo = "pyflakes";
18 tag = version;
19 hash = "sha256-4UEJjn9Eey1vHeaG468x/nMlbfGu3ohZX1R7RR2R5ik=";
20 };
21
22 build-system = [ setuptools ];
23
24 nativeCheckInputs = [ pytestCheckHook ];
25
26 disabledTests = lib.optionals isPyPy [
27 # https://github.com/PyCQA/pyflakes/issues/779
28 "test_eofSyntaxError"
29 "test_misencodedFileUTF16"
30 "test_misencodedFileUTF8"
31 "test_multilineSyntaxError"
32 ];
33
34 pythonImportsCheck = [ "pyflakes" ];
35
36 meta = {
37 homepage = "https://github.com/PyCQA/pyflakes";
38 changelog = "https://github.com/PyCQA/pyflakes/blob/${src.tag}/NEWS.rst";
39 description = "Simple program which checks Python source files for errors";
40 mainProgram = "pyflakes";
41 license = lib.licenses.mit;
42 maintainers = with lib.maintainers; [ dotlambda ];
43 };
44}