1{lib, buildPythonPackage, fetchPypi, pytest, flake8}:
2
3buildPythonPackage rec {
4 pname = "pytest-flake8";
5 version = "1.0.2";
6
7 # although pytest is a runtime dependency, do not add it as
8 # propagatedBuildInputs in order to allow packages depend on another version
9 # of pytest more easily
10 buildInputs = [ pytest ];
11 propagatedBuildInputs = [ flake8 ];
12
13 src = fetchPypi {
14 inherit pname version;
15 sha256 = "c740ad6aa19e3958947d2118f70bed218caf1d2097039fb7318573a2a72f89a1";
16 };
17
18 checkPhase = ''
19 pytest .
20 '';
21
22 meta = {
23 description = "py.test plugin for efficiently checking PEP8 compliance";
24 homepage = https://github.com/tholo/pytest-flake8;
25 maintainers = with lib.maintainers; [ jluttine ];
26 license = lib.licenses.bsd2;
27 };
28}