2017-09-05 11:16:41 +02:00
|
|
|
{lib, buildPythonPackage, fetchPypi, fetchpatch, pytest, flake8}:
|
2017-05-06 09:26:32 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-flake8";
|
2018-05-01 16:13:37 +02:00
|
|
|
version = "1.0.1";
|
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-05-01 16:13:37 +02:00
|
|
|
sha256 = "0s5fdivrmhjf6ybr6m2qb1h8hndv2jh2ir29qv36lhy9b7sc9kg5";
|
2017-05-06 09:26:32 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
checkPhase = ''
|
2018-01-20 13:31:14 +01: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;
|
|
|
|
};
|
|
|
|
}
|