1{ lib, buildPythonPackage, fetchPypi, msgpack }: 2 3buildPythonPackage rec { 4 pname = "fluent-logger"; 5 version = "0.10.0"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "678bda90c513ff0393964b64544ce41ef25669d2089ce6c3b63d9a18554b9bfa"; 10 }; 11 12 prePatch = '' 13 substituteInPlace setup.py \ 14 --replace "msgpack<1.0.0" "msgpack" 15 ''; 16 17 propagatedBuildInputs = [ msgpack ]; 18 19 # Tests fail because absent in package 20 doCheck = false; 21 pythonImportsCheck = [ 22 "fluent" 23 "fluent.event" 24 "fluent.handler" 25 "fluent.sender" 26 ]; 27 28 meta = with lib; { 29 description = "A structured logger for Fluentd (Python)"; 30 homepage = "https://github.com/fluent/fluent-logger-python"; 31 license = licenses.asl20; 32 }; 33}