1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, mock
5, pytestCheckHook
6, pythonOlder
7}:
8
9buildPythonPackage rec {
10 pname = "verboselogs";
11 version = "1.7";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchFromGitHub {
17 owner = "xolox";
18 repo = "python-verboselogs";
19 rev = version;
20 hash = "sha256-hcIdbn0gdkdJ33KcOx6uv0iMXW0x+i880SoROi+qX4I=";
21 };
22
23 checkInputs = [
24 pytestCheckHook
25 mock
26 ];
27
28 pythonImportsCheck = [
29 "verboselogs"
30 ];
31
32 disabledTests = [
33 # Do not run pylint plugin test
34 "test_pylint_plugin"
35 ];
36
37 meta = with lib; {
38 description = "Verbose logging for Python's logging module";
39 homepage = "https://github.com/xolox/python-verboselogs";
40 license = licenses.mit;
41 maintainers = with maintainers; [ eyjhb ];
42 };
43}