1{ lib
2, buildPythonPackage
3, pythonOlder
4, fetchPypi
5, pytestCheckHook
6}:
7
8buildPythonPackage rec {
9 pname = "pyflakes";
10 version = "3.1.0";
11
12 disabled = pythonOlder "3.8";
13
14 format = "setuptools";
15
16 src = fetchPypi {
17 inherit pname version;
18 hash = "sha256-oKrgNMRE2wBxqgd5crpHaNQMgw2VOf1Fv0zT+PaZLvw=";
19 };
20
21 nativeCheckInputs = [
22 pytestCheckHook
23 ];
24
25 pythonImportsCheck = [ "pyflakes" ];
26
27 meta = with lib; {
28 homepage = "https://github.com/PyCQA/pyflakes";
29 changelog = "https://github.com/PyCQA/pyflakes/blob/${version}/NEWS.rst";
30 description = "A simple program which checks Python source files for errors";
31 license = licenses.mit;
32 maintainers = with maintainers; [ dotlambda ];
33 };
34}