1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 pytestCheckHook, 7 rfc3339, 8 requests, 9 freezegun, 10}: 11 12buildPythonPackage rec { 13 pname = "python-logging-loki"; 14 version = "0.3.1"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "GreyZmeem"; 19 repo = "python-logging-loki"; 20 tag = "v${version}"; 21 hash = "sha256-1qHuv+xzATo11au+QAhD1lHcLJtnVKZDdQDGohHUhiI="; 22 }; 23 24 build-system = [ setuptools ]; 25 26 dependencies = [ 27 rfc3339 28 requests 29 ]; 30 31 nativeCheckInputs = [ 32 pytestCheckHook 33 freezegun 34 ]; 35 36 # ValueError 37 # Considering that the package has not been updated since 2019, it is likely that this test is broken 38 disabledTests = [ "test_can_build_tags_from_converting_dict" ]; 39 40 pythonImportsCheck = [ "logging_loki" ]; 41 42 meta = { 43 description = "Python logging handler for Loki"; 44 homepage = "https://github.com/GreyZmeem/python-logging-loki"; 45 changelog = "https://github.com/GreyZmeem/python-logging-loki/releases/tag/v${version}"; 46 license = lib.licenses.mit; 47 maintainers = with lib.maintainers; [ moraxyc ]; 48 }; 49}