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