2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pythonOlder,
|
|
|
|
pytest,
|
|
|
|
pyflakes,
|
2020-11-19 00:13:47 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2020-06-02 18:00:15 +00:00
|
|
|
# upstream has abandoned project in favor of pytest-flake8
|
|
|
|
# retaining package to not break other packages
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "pytest-flakes";
|
2021-12-19 01:06:50 +00:00
|
|
|
version = "4.0.5";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-11-19 00:13:47 +00:00
|
|
|
disabled = pythonOlder "3.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-12-19 01:06:50 +00:00
|
|
|
sha256 = "953134e97215ae31f6879fbd7368c18d43f709dc2fab5b7777db2bb2bac3a924";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
buildInputs = [ pytest ];
|
|
|
|
propagatedBuildInputs = [ pyflakes ];
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ pytest ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-06-02 18:00:15 +00:00
|
|
|
# no longer passes
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "pytest_flakes" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
# disable one test case that looks broken
|
|
|
|
checkPhase = ''
|
|
|
|
py.test test_flakes.py -k 'not test_syntax_error'
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
homepage = "https://pypi.python.org/pypi/pytest-flakes";
|
|
|
|
description = "pytest plugin to check source code with pyflakes";
|
|
|
|
};
|
|
|
|
}
|