1{
2 lib,
3 buildPythonPackage,
4 pythonOlder,
5 fetchFromGitHub,
6 setuptools-scm,
7 flake8,
8 pytestCheckHook,
9}:
10
11buildPythonPackage rec {
12 pname = "pytest-flake8";
13 version = "1.3.0";
14 pyproject = true;
15
16 disabled = pythonOlder "3.9";
17
18 src = fetchFromGitHub {
19 owner = "coherent-oss";
20 repo = "pytest-flake8";
21 tag = "v${version}";
22 hash = "sha256-uc5DOqqdoLfhzI2ogDOqhbJOHzdu+uqSOojIH+S1LZI=";
23 };
24
25 build-system = [ setuptools-scm ];
26
27 dependencies = [ flake8 ];
28
29 nativeCheckInputs = [ pytestCheckHook ];
30
31 meta = {
32 changelog = "https://github.com/coherent-oss/pytest-flake8/blob/${src.rev}/NEWS.rst";
33 description = "py.test plugin for efficiently checking PEP8 compliance";
34 homepage = "https://github.com/coherent-oss/pytest-flake8";
35 maintainers = with lib.maintainers; [ jluttine ];
36 license = lib.licenses.bsd2;
37 };
38}