1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 python-json-logger, 6 pythonOlder, 7 setuptools, 8}: 9 10buildPythonPackage rec { 11 pname = "logmatic-python"; 12 version = "0.1.7"; 13 pyproject = true; 14 15 disabled = pythonOlder "3.8"; 16 17 src = fetchFromGitHub { 18 owner = "logmatic"; 19 repo = "logmatic-python"; 20 tag = version; 21 hash = "sha256-UYKm00KhXnPQDkKJVm7s0gOwZ3GNY07O0oKbzPhAdVE="; 22 }; 23 24 nativeBuildInputs = [ setuptools ]; 25 26 propagatedBuildInputs = [ python-json-logger ]; 27 28 # Only functional tests, no unit tests 29 doCheck = false; 30 31 pythonImportsCheck = [ "logmatic" ]; 32 33 meta = with lib; { 34 description = "Python helpers to send logs to Logmatic.io"; 35 homepage = "https://github.com/logmatic/logmatic-python"; 36 license = licenses.mit; 37 maintainers = with maintainers; [ fab ]; 38 }; 39}