1{ lib
2, buildPythonPackage
3, pythonOlder
4, fetchPypi
5, pytestCheckHook
6}:
7
8buildPythonPackage rec {
9 pname = "pyflakes";
10 version = "2.5.0";
11
12 disabled = pythonOlder "3.6";
13
14 format = "setuptools";
15
16 src = fetchPypi {
17 inherit pname version;
18 sha256 = "491feb020dca48ccc562a8c0cbe8df07ee13078df59813b83959cbdada312ea3";
19 };
20
21 checkInputs = [
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}