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 format = "setuptools";
14
15 src = fetchPypi {
16 inherit pname version;
17 hash = "sha256-UUxJI8iOuLPdUttLVbjTSDUg24nbgK9rqBKkrxVCH/E=";
18 };
19
20 build-system = [ setuptools ];
21
22 dependencies = [ flake8 ];
23
24 nativeCheckInputs = [ pytestCheckHook ];
25
26 pythonImportsCheck = [ "flake8_class_newline" ];
27
28 meta = with lib; {
29 description = "Flake8 extension to check if a new line is present after a class definition";
30 homepage = "https://github.com/alexandervaneck/flake8-class-newline";
31 license = licenses.mit;
32 maintainers = with maintainers; [ lopsided98 ];
33 };
34}