2018-07-21 02:44:44 +02:00
|
|
|
{lib, buildPythonPackage, fetchPypi, pytest, flake8}:
|
2017-05-06 09:26:32 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-flake8";
|
2018-07-30 13:05:55 +02:00
|
|
|
version = "1.0.2";
|
2017-05-06 09:26:32 +02:00
|
|
|
|
|
|
|
# although pytest is a runtime dependency, do not add it as
|
|
|
|
# propagatedBuildInputs in order to allow packages depend on another version
|
|
|
|
# of pytest more easily
|
|
|
|
buildInputs = [ pytest ];
|
|
|
|
propagatedBuildInputs = [ flake8 ];
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-07-30 13:05:55 +02:00
|
|
|
sha256 = "c740ad6aa19e3958947d2118f70bed218caf1d2097039fb7318573a2a72f89a1";
|
2017-05-06 09:26:32 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
checkPhase = ''
|
2018-07-30 13:05:55 +02:00
|
|
|
pytest .
|
2017-05-06 09:26:32 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "py.test plugin for efficiently checking PEP8 compliance";
|
|
|
|
homepage = https://github.com/tholo/pytest-flake8;
|
|
|
|
maintainers = with lib.maintainers; [ jluttine ];
|
|
|
|
license = lib.licenses.bsd2;
|
|
|
|
};
|
|
|
|
}
|