1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pycodestyle,
6 pytest-isort,
7 pytest,
8 pytestCheckHook,
9 setuptools,
10}:
11
12buildPythonPackage rec {
13 pname = "pytest-pycodestyle";
14 version = "2.5.0";
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "henry0312";
19 repo = "pytest-pycodestyle";
20 tag = "v${version}";
21 hash = "sha256-X/vacxI0RFHIqlZ2omzvvFDePS/SZYSFQHEmfcbvf/4=";
22 };
23
24 build-system = [ setuptools ];
25
26 buildInputs = [ pytest ];
27
28 dependencies = [ pycodestyle ];
29
30 nativeCheckInputs = [
31 pytest-isort
32 pytestCheckHook
33 ];
34
35 pythonImportsCheck = [ "pytest_pycodestyle" ];
36
37 meta = {
38 description = "Pytest plugin to run pycodestyle";
39 homepage = "https://github.com/henry0312/pytest-pycodestyle";
40 changelog = "https://github.com/henry0312/pytest-pycodestyle/releases/tag/${src.tag}";
41 license = lib.licenses.mit;
42 maintainers = with lib.maintainers; [ fab ];
43 };
44}