1{ stdenv, buildPythonPackage, fetchPypi
2, pytestpep8, pytest, pyflakes }:
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 checkInputs = [ pytestpep8 pytest ];
14 nativeBuildInputs = [ pytest ];
15 propagatedBuildInputs = [ pyflakes ];
16
17 # disable one test case that looks broken
18 checkPhase = ''
19 py.test test_flakes.py -k 'not test_syntax_error'
20 '';
21
22 meta = with stdenv.lib; {
23 license = licenses.mit;
24 homepage = https://pypi.python.org/pypi/pytest-flakes;
25 description = "pytest plugin to check source code with pyflakes";
26 };
27}