python312Packages.pygelf: init at 0.4.2

This commit is contained in:
Pol Dellaiera
2024-11-21 17:12:34 +01:00
parent a44b532846
commit 01dbbb39ec
2 changed files with 52 additions and 0 deletions
@@ -0,0 +1,50 @@
{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
mock,
pytestCheckHook,
requests,
}:
buildPythonPackage rec {
pname = "pygelf";
version = "0.4.2";
pyproject = true;
src = fetchPypi {
pname = "pygelf";
inherit version;
hash = "sha256-0LuPRf9kipoYdxP0oFwJ9oX8uK3XsEu3Rx8gBxvRGq0=";
};
build-system = [ setuptools ];
pythonImportsCheck = [ "pygelf" ];
nativeCheckInputs = [
mock
pytestCheckHook
requests
];
disabledTests = [
# ConnectionRefusedError: [Errno 111] Connection refused
"test_static_fields"
"test_dynamic_fields"
];
disabledTestPaths = [
# These tests requires files that are stripped off by Pypi packaging
"tests/test_queuehandler_support.py"
"tests/test_debug_mode.py"
"tests/test_common_fields.py"
];
meta = {
description = "Python logging handlers with GELF (Graylog Extended Log Format) support";
homepage = "https://github.com/keeprocking/pygelf";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ drupol ];
};
}
+2
View File
@@ -10397,6 +10397,8 @@ self: super: with self; {
pyfreedompro = callPackage ../development/python-modules/pyfreedompro { };
pygelf = callPackage ../development/python-modules/pygelf { };
pygments-style-github = callPackage ../development/python-modules/pygments-style-github { };
pygnmi = callPackage ../development/python-modules/pygnmi { };