1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, flit-core
5, pytestCheckHook
6, pythonOlder
7}:
8
9buildPythonPackage rec {
10 pname = "ecs-logging";
11 version = "2.1.0";
12 format = "pyproject";
13
14 disabled = pythonOlder "3.8";
15
16 src = fetchFromGitHub {
17 owner = "elastic";
18 repo = "ecs-logging-python";
19 rev = "refs/tags/${version}";
20 hash = "sha256-Gf44bT3/gmHy+yaQ1+bhCFB33ym2G14tzNqTQyC3BJU=";
21 };
22
23 nativeBuildInputs = [
24 flit-core
25 ];
26
27 # Circular dependency elastic-apm
28 doCheck = false;
29
30 pythonImportsCheck = [
31 "ecs_logging"
32 ];
33
34 meta = with lib; {
35 description = "Logging formatters for the Elastic Common Schema (ECS) in Python";
36 homepage = "https://github.com/elastic/ecs-logging-python";
37 license = with licenses; [ asl20 ];
38 maintainers = with maintainers; [ fab ];
39 };
40}