1{ 2 lib, 3 buildPythonPackage, 4 isPyPy, 5 fetchFromGitHub, 6 setuptools, 7 pytestCheckHook, 8}: 9 10buildPythonPackage rec { 11 pname = "pyflakes"; 12 version = "3.3.2"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "PyCQA"; 17 repo = "pyflakes"; 18 rev = version; 19 hash = "sha256-nNug9EZ0coI095/QJu/eK1Ozlt01INT+mLlYdqrJuzE="; 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_misencodedFileUTF8" 30 "test_multilineSyntaxError" 31 ]; 32 33 pythonImportsCheck = [ "pyflakes" ]; 34 35 meta = with lib; { 36 homepage = "https://github.com/PyCQA/pyflakes"; 37 changelog = "https://github.com/PyCQA/pyflakes/blob/${src.rev}/NEWS.rst"; 38 description = "Simple program which checks Python source files for errors"; 39 mainProgram = "pyflakes"; 40 license = licenses.mit; 41 maintainers = with maintainers; [ dotlambda ]; 42 }; 43}