Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

81 lines
1.5 KiB
Nix

{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
# dependencies
debtcollector,
oslo-config,
oslo-context,
oslo-serialization,
oslo-utils,
pbr,
python-dateutil,
pyinotify,
# tests
eventlet,
oslotest,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "oslo-log";
version = "7.2.1";
pyproject = true;
src = fetchFromGitHub {
owner = "openstack";
repo = "oslo.log";
tag = version;
hash = "sha256-DEKRkVaGJeHx/2k3pC/OxtJ0lzFj1IXtRFz1uJJPgR8=";
};
# Manually set version because prb wants to get it from the git upstream repository (and we are
# installing from tarball instead)
PBR_VERSION = version;
build-system = [ setuptools ];
dependencies = [
debtcollector
oslo-config
oslo-context
oslo-serialization
oslo-utils
pbr
python-dateutil
]
++ lib.optionals stdenv.hostPlatform.isLinux [ pyinotify ];
nativeCheckInputs = [
eventlet
oslotest
pytestCheckHook
];
disabledTests = [
# not compatible with sandbox
"test_logging_handle_error"
# Incompatible Exception Representation, displaying natively
"test_rate_limit"
"test_rate_limit_except_level"
];
pythonImportsCheck = [ "oslo_log" ];
__darwinAllowLocalNetworking = true;
meta = {
description = "oslo.log library";
mainProgram = "convert-json";
homepage = "https://github.com/openstack/oslo.log";
license = lib.licenses.asl20;
teams = [ lib.teams.openstack ];
};
}