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 {
|
|
|
|
pname = "pytest-flakes";
|
2018-08-13 08:31:34 +01:00
|
|
|
version = "4.0.0";
|
2018-04-01 13:09:20 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-08-13 08:31:34 +01:00
|
|
|
sha256 = "341964bf5760ebbdde9619f68a17d5632c674c3f6903ef66daa0a4f540b3d143";
|
2018-04-01 13:09:20 +01:00
|
|
|
};
|
|
|
|
|
2019-02-15 09:08:27 +00:00
|
|
|
checkInputs = [ pytestpep8 pytest ];
|
|
|
|
nativeBuildInputs = [ pytest ];
|
2018-09-11 10:15:03 +01:00
|
|
|
propagatedBuildInputs = [ pyflakes ];
|
2018-04-01 13:09:20 +01:00
|
|
|
|
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;
|
|
|
|
homepage = https://pypi.python.org/pypi/pytest-flakes;
|
|
|
|
description = "pytest plugin to check source code with pyflakes";
|
|
|
|
};
|
|
|
|
}
|