2018-07-21 01:44:44 +01:00
|
|
|
{lib, buildPythonPackage, fetchPypi, pytest, flake8}:
|
2017-05-06 08:26:32 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-flake8";
|
2020-06-05 18:44:36 +01:00
|
|
|
version = "1.0.6";
|
2017-05-06 08:26:32 +01: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
|
2019-01-05 10:54:27 +00:00
|
|
|
checkInputs = [ pytest ];
|
2017-05-06 08:26:32 +01:00
|
|
|
propagatedBuildInputs = [ flake8 ];
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-05 18:44:36 +01:00
|
|
|
sha256 = "1b82bb58c88eb1db40524018d3fcfd0424575029703b4e2d8e3ee873f2b17027";
|
2017-05-06 08:26:32 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
checkPhase = ''
|
2018-07-30 12:05:55 +01:00
|
|
|
pytest .
|
2017-05-06 08:26:32 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "py.test plugin for efficiently checking PEP8 compliance";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/tholo/pytest-flake8";
|
2017-05-06 08:26:32 +01:00
|
|
|
maintainers = with lib.maintainers; [ jluttine ];
|
|
|
|
license = lib.licenses.bsd2;
|
|
|
|
};
|
|
|
|
}
|