1{ stdenv, buildPythonPackage, fetchPypi, pythonOlder
2, mock, pytest, pytestrunner
3, configparser, enum34, mccabe, pycodestyle, pyflakes
4}:
5
6buildPythonPackage rec {
7 name = "${pname}-${version}";
8 pname = "flake8";
9 version = "3.5.0";
10
11 src = fetchPypi {
12 inherit pname version;
13 sha256 = "7253265f7abd8b313e3892944044a365e3f4ac3fcdcfb4298f55ee9ddf188ba0";
14 };
15
16 buildInputs = [ pytest mock pytestrunner ];
17 propagatedBuildInputs = [ pyflakes pycodestyle mccabe ]
18 ++ stdenv.lib.optionals (pythonOlder "3.4") [ enum34 ]
19 ++ stdenv.lib.optionals (pythonOlder "3.2") [ configparser ];
20
21 meta = with stdenv.lib; {
22 description = "Code checking using pep8 and pyflakes";
23 homepage = https://pypi.python.org/pypi/flake8;
24 license = licenses.mit;
25 maintainers = with maintainers; [ garbas ];
26 };
27}