depot/third_party/nixpkgs/pkgs/development/python-modules/python-logging-loki/default.nix
Default email 98eb3e9ef5 Project import generated by Copybara.
GitOrigin-RevId: 00d80d13810dbfea8ab4ed1009b09100cca86ba8
2024-07-01 15:47:52 +00:00

49 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
pytestCheckHook,
rfc3339,
requests,
freezegun,
}:
buildPythonPackage rec {
pname = "python-logging-loki";
version = "0.3.1";
pyproject = true;
src = fetchFromGitHub {
owner = "GreyZmeem";
repo = "python-logging-loki";
rev = "refs/tags/v${version}";
hash = "sha256-1qHuv+xzATo11au+QAhD1lHcLJtnVKZDdQDGohHUhiI=";
};
build-system = [ setuptools ];
dependencies = [
rfc3339
requests
];
nativeCheckInputs = [
pytestCheckHook
freezegun
];
# ValueError
# Considering that the package has not been updated since 2019, it is likely that this test is broken
disabledTests = [ "test_can_build_tags_from_converting_dict" ];
pythonImportsCheck = [ "logging_loki" ];
meta = {
description = "Python logging handler for Loki";
homepage = "https://github.com/GreyZmeem/python-logging-loki";
changelog = "https://github.com/GreyZmeem/python-logging-loki/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ moraxyc ];
};
}