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