1{
2 lib,
3 buildPythonPackage,
4 pythonOlder,
5 fetchFromGitHub,
6 setuptools,
7 pytestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "pyflakes";
12 version = "3.2.0";
13
14 disabled = pythonOlder "3.8";
15
16 pyproject = true;
17
18 src = fetchFromGitHub {
19 owner = "PyCQA";
20 repo = "pyflakes";
21 rev = version;
22 hash = "sha256-ouCkkm9OrYob00uLTilqgWsTWfHhzaiZp7sa2C5liqk=";
23 };
24
25 nativeBuildInputs = [ setuptools ];
26
27 nativeCheckInputs = [ pytestCheckHook ];
28
29 pythonImportsCheck = [ "pyflakes" ];
30
31 meta = with lib; {
32 homepage = "https://github.com/PyCQA/pyflakes";
33 changelog = "https://github.com/PyCQA/pyflakes/blob/${src.rev}/NEWS.rst";
34 description = "Simple program which checks Python source files for errors";
35 mainProgram = "pyflakes";
36 license = licenses.mit;
37 maintainers = with maintainers; [ dotlambda ];
38 };
39}