Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 31 lines 946 B view raw
1{ stdenv, buildPythonPackage, fetchPypi, pythonOlder 2, mock, pytest, pytestrunner 3, configparser, enum34, mccabe, pycodestyle, pyflakes, entrypoints, functools32, typing 4}: 5 6buildPythonPackage rec { 7 pname = "flake8"; 8 version = "3.7.7"; 9 10 src = fetchPypi { 11 inherit pname version; 12 sha256 = "859996073f341f2670741b51ec1e67a01da142831aa1fdc6242dbf88dffbe661"; 13 }; 14 15 checkInputs = [ pytest mock pytestrunner ]; 16 propagatedBuildInputs = [ entrypoints pyflakes pycodestyle mccabe ] 17 ++ stdenv.lib.optionals (pythonOlder "3.2") [ configparser functools32 ] 18 ++ stdenv.lib.optionals (pythonOlder "3.4") [ enum34 ] 19 ++ stdenv.lib.optionals (pythonOlder "3.5") [ typing ]; 20 21 checkPhase = '' 22 py.test tests 23 ''; 24 25 meta = with stdenv.lib; { 26 description = "Code checking using pep8 and pyflakes"; 27 homepage = https://pypi.python.org/pypi/flake8; 28 license = licenses.mit; 29 maintainers = with maintainers; [ ]; 30 }; 31}