Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
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_misencodedFileUTF8" 30 "test_multilineSyntaxError" 31 ]; 32 33 pythonImportsCheck = [ "pyflakes" ]; 34 35 meta = { 36 homepage = "https://github.com/PyCQA/pyflakes"; 37 changelog = "https://github.com/PyCQA/pyflakes/blob/${src.tag}/NEWS.rst"; 38 description = "Simple program which checks Python source files for errors"; 39 mainProgram = "pyflakes"; 40 license = lib.licenses.mit; 41 maintainers = with lib.maintainers; [ dotlambda ]; 42 }; 43}