1{ stdenv, buildPythonPackage, fetchPypi 2, pytestpep8, pytest, pyflakes, pytestcache }: 3 4buildPythonPackage rec { 5 pname = "pytest-flakes"; 6 version = "4.0.0"; 7 8 src = fetchPypi { 9 inherit pname version; 10 sha256 = "341964bf5760ebbdde9619f68a17d5632c674c3f6903ef66daa0a4f540b3d143"; 11 }; 12 13 buildInputs = [ pytestpep8 pytest ]; 14 propagatedBuildInputs = [ pyflakes pytestcache ]; 15 16 checkPhase = '' 17 py.test test_flakes.py 18 ''; 19 20 meta = with stdenv.lib; { 21 license = licenses.mit; 22 homepage = https://pypi.python.org/pypi/pytest-flakes; 23 description = "pytest plugin to check source code with pyflakes"; 24 }; 25}