1{ lib, buildPythonPackage, fetchPypi, pythonOlder 2, pytest 3, pyflakes 4}: 5 6buildPythonPackage rec { 7 # upstream has abandoned project in favor of pytest-flake8 8 # retaining package to not break other packages 9 pname = "pytest-flakes"; 10 version = "4.0.5"; 11 disabled = pythonOlder "3.5"; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "953134e97215ae31f6879fbd7368c18d43f709dc2fab5b7777db2bb2bac3a924"; 16 }; 17 18 buildInputs = [ pytest ]; 19 propagatedBuildInputs = [ pyflakes ]; 20 checkInputs = [ pytest ]; 21 22 # no longer passes 23 doCheck = false; 24 pythonImportsCheck = [ "pytest_flakes" ]; 25 # disable one test case that looks broken 26 checkPhase = '' 27 py.test test_flakes.py -k 'not test_syntax_error' 28 ''; 29 30 meta = with lib; { 31 license = licenses.mit; 32 homepage = "https://pypi.python.org/pypi/pytest-flakes"; 33 description = "pytest plugin to check source code with pyflakes"; 34 }; 35}