1{
2 lib,
3 fetchPypi,
4 buildPythonPackage,
5 setuptools,
6 flake8,
7 pytestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "flake8-class-newline";
12 version = "1.6.0";
13
14 src = fetchPypi {
15 inherit pname version;
16 hash = "sha256-UUxJI8iOuLPdUttLVbjTSDUg24nbgK9rqBKkrxVCH/E=";
17 };
18
19 build-system = [ setuptools ];
20
21 dependencies = [ flake8 ];
22
23 nativeCheckInputs = [ pytestCheckHook ];
24
25 pythonImportsCheck = [ "flake8_class_newline" ];
26
27 meta = with lib; {
28 description = "Flake8 extension to check if a new line is present after a class definition";
29 homepage = "https://github.com/alexandervaneck/flake8-class-newline";
30 license = licenses.mit;
31 maintainers = with maintainers; [ lopsided98 ];
32 };
33}