2020-11-05 23:13:08 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, pythonOlder
|
|
|
|
, pytestpep8
|
|
|
|
, pytest
|
|
|
|
, pyflakes
|
|
|
|
}:
|
2018-04-01 13:09:20 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2020-05-10 18:53:48 +01:00
|
|
|
# upstream has abandoned project in favor of pytest-flake8
|
|
|
|
# retaining package to not break other packages
|
2018-04-01 13:09:20 +01:00
|
|
|
pname = "pytest-flakes";
|
2020-11-29 14:04:39 +00:00
|
|
|
version = "4.0.3";
|
2020-11-05 23:13:08 +00:00
|
|
|
disabled = pythonOlder "3.5";
|
2018-04-01 13:09:20 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-29 14:04:39 +00:00
|
|
|
sha256 = "bf070c5485dad82d5b5f5d0eb08d269737e378492d9a68f5223b0a90924c7754";
|
2018-04-01 13:09:20 +01:00
|
|
|
};
|
|
|
|
|
2019-02-15 09:08:27 +00:00
|
|
|
checkInputs = [ pytestpep8 pytest ];
|
2020-05-10 18:53:48 +01:00
|
|
|
propagatedBuildInputs = [ pytest pyflakes ];
|
2018-04-01 13:09:20 +01:00
|
|
|
|
2020-05-10 18:53:48 +01:00
|
|
|
# no longer passes
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "pytest_flakes" ];
|
2018-09-11 10:15:03 +01:00
|
|
|
# disable one test case that looks broken
|
2018-04-01 13:09:20 +01:00
|
|
|
checkPhase = ''
|
2018-09-11 10:15:03 +01:00
|
|
|
py.test test_flakes.py -k 'not test_syntax_error'
|
2018-04-01 13:09:20 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
license = licenses.mit;
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://pypi.python.org/pypi/pytest-flakes";
|
2018-04-01 13:09:20 +01:00
|
|
|
description = "pytest plugin to check source code with pyflakes";
|
|
|
|
};
|
|
|
|
}
|