1{ lib, buildPythonPackage, fetchPypi, pythonOlder, unittest2 }: 2 3buildPythonPackage rec { 4 pname = "pyflakes"; 5 version = "2.4.0"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "05a85c2872edf37a4ed30b0cce2f6093e1d0581f8c19d7393122da7e25b2b24c"; 10 }; 11 12 checkInputs = [ unittest2 ]; 13 14 # some tests are output dependent, which have changed slightly 15 doCheck = pythonOlder "3.9"; 16 17 meta = with lib; { 18 homepage = "https://launchpad.net/pyflakes"; 19 description = "A simple program which checks Python source files for errors"; 20 license = licenses.mit; 21 maintainers = with maintainers; [ ]; 22 }; 23}