2017-09-05 10:16:41 +01:00
|
|
|
{lib, buildPythonPackage, fetchPypi, fetchpatch, pytest, flake8}:
|
2017-05-06 08:26:32 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
pname = "pytest-flake8";
|
2017-11-22 05:34:10 +00:00
|
|
|
version = "0.9.1";
|
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
|
|
|
|
buildInputs = [ pytest ];
|
|
|
|
propagatedBuildInputs = [ flake8 ];
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2017-11-22 05:34:10 +00:00
|
|
|
sha256 = "0032l4x2i5qn7ikaaw0kjs9f4ccpas21j564spyxwmx50wnhf5p7";
|
2017-05-06 08:26:32 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
checkPhase = ''
|
2018-01-20 12:31:14 +00:00
|
|
|
pytest .
|
2017-05-06 08:26:32 +01: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;
|
|
|
|
};
|
|
|
|
}
|