1{lib, buildPythonPackage, fetchPypi, pytest, flake8}:
2
3buildPythonPackage rec {
4 pname = "pytest-flake8";
5 version = "1.0.4";
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 checkInputs = [ pytest ];
11 propagatedBuildInputs = [ flake8 ];
12
13 src = fetchPypi {
14 inherit pname version;
15 sha256 = "4d225c13e787471502ff94409dcf6f7927049b2ec251c63b764a4b17447b60c0";
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}