78efc47b99
GitOrigin-RevId: 83cbad92d73216bb0d9187c56cce0b91f9121d5a
35 lines
929 B
Nix
35 lines
929 B
Nix
{ stdenv, buildPythonPackage, fetchPypi, pythonOlder
|
|
, pytestpep8
|
|
, pytest
|
|
, pyflakes
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
# upstream has abandoned project in favor of pytest-flake8
|
|
# retaining package to not break other packages
|
|
pname = "pytest-flakes";
|
|
version = "4.0.3";
|
|
disabled = pythonOlder "3.5";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "bf070c5485dad82d5b5f5d0eb08d269737e378492d9a68f5223b0a90924c7754";
|
|
};
|
|
|
|
checkInputs = [ pytestpep8 pytest ];
|
|
propagatedBuildInputs = [ pytest pyflakes ];
|
|
|
|
# no longer passes
|
|
doCheck = false;
|
|
pythonImportsCheck = [ "pytest_flakes" ];
|
|
# 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";
|
|
};
|
|
}
|