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