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