summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/ecs-logging/default.nix
blob: bbb0349e5faf5ff034008f7dc0c0856a50a94121 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  flit-core,
}:

buildPythonPackage rec {
  pname = "ecs-logging";
  version = "2.2.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "elastic";
    repo = "ecs-logging-python";
    tag = version;
    hash = "sha256-djCEutZqcyRfRme+omiwl3ofBUBli71TnfVu59i7vlE=";
  };

  nativeBuildInputs = [ flit-core ];

  # Circular dependency elastic-apm
  doCheck = false;

  pythonImportsCheck = [ "ecs_logging" ];

  meta = {
    description = "Logging formatters for the Elastic Common Schema (ECS) in Python";
    homepage = "https://github.com/elastic/ecs-logging-python";
    license = with lib.licenses; [ asl20 ];
    maintainers = with lib.maintainers; [ fab ];
  };
}