2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi
|
|
|
|
, pytestpep8, pytest, pyflakes }:
|
|
|
|
|
|
|
|
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";
|
2020-08-20 17:08:02 +00:00
|
|
|
version = "4.0.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-08-20 17:08:02 +00:00
|
|
|
sha256 = "37113ac6c7ea5e0b648abf73937955a45f8b9214fe49413297c2ce6ce1808500";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytestpep8 pytest ];
|
2020-06-02 18:00:15 +00:00
|
|
|
propagatedBuildInputs = [ pytest pyflakes ];
|
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'
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
license = licenses.mit;
|
|
|
|
homepage = "https://pypi.python.org/pypi/pytest-flakes";
|
|
|
|
description = "pytest plugin to check source code with pyflakes";
|
|
|
|
};
|
|
|
|
}
|