2018-04-01 13:09:20 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi
|
2018-09-11 10:15:03 +01:00
|
|
|
, 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-07-31 09:56:45 +01:00
|
|
|
version = "4.0.1";
|
2018-04-01 13:09:20 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-07-31 09:56:45 +01:00
|
|
|
sha256 = "37113ac6c7ea5e0b648abf73937955a45f8b9214fe49413297c2ce6ce1808500";
|
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";
|
|
|
|
};
|
|
|
|
}
|