1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 flask,
6 logmatic-python,
7 pytestCheckHook,
8 pythonOlder,
9 pyyaml,
10 requests,
11 setuptools,
12 testfixtures,
13}:
14
15buildPythonPackage rec {
16 pname = "reconplogger";
17 version = "4.18.0";
18 pyproject = true;
19
20 disabled = pythonOlder "3.8";
21
22 src = fetchFromGitHub {
23 owner = "omni-us";
24 repo = "reconplogger";
25 tag = "v${version}";
26 hash = "sha256-awUGDE9yuPhWMZ4osCJKw8v5V1leoFF3DeCbluHeN70=";
27 };
28
29 build-system = [ setuptools ];
30
31 dependencies = [
32 logmatic-python
33 pyyaml
34 ];
35
36 optional-dependencies = {
37 all = [
38 flask
39 requests
40 ];
41 };
42
43 nativeCheckInputs = [
44 pytestCheckHook
45 testfixtures
46 ];
47
48 pythonImportsCheck = [ "reconplogger" ];
49
50 enabledTestPaths = [ "reconplogger_tests.py" ];
51
52 meta = with lib; {
53 description = "Module to ease the standardization of logging within omni:us";
54 homepage = "https://github.com/omni-us/reconplogger";
55 license = licenses.mit;
56 maintainers = with maintainers; [ fab ];
57 };
58}