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