2021-09-18 10:52:07 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2022-11-04 12:27:35 +00:00
|
|
|
, eventlet
|
2021-09-18 10:52:07 +00:00
|
|
|
, oslo-config
|
|
|
|
, oslo-context
|
|
|
|
, oslo-serialization
|
|
|
|
, oslo-utils
|
|
|
|
, oslotest
|
|
|
|
, pbr
|
|
|
|
, pyinotify
|
|
|
|
, python-dateutil
|
2022-02-10 20:34:41 +00:00
|
|
|
, pytestCheckHook
|
2022-04-15 01:41:22 +00:00
|
|
|
, pythonOlder
|
2021-09-18 10:52:07 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "oslo-log";
|
2023-03-30 22:05:00 +00:00
|
|
|
version = "5.2.0";
|
2022-04-15 01:41:22 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "oslo.log";
|
|
|
|
inherit version;
|
2023-03-30 22:05:00 +00:00
|
|
|
hash = "sha256-YiYzbVtu4YhfBXtl2+3oTEqcXk5K51oOjn84PBY+xIA=";
|
2021-09-18 10:52:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
oslo-config
|
|
|
|
oslo-context
|
|
|
|
oslo-serialization
|
|
|
|
oslo-utils
|
|
|
|
pbr
|
|
|
|
python-dateutil
|
|
|
|
] ++ lib.optionals stdenv.isLinux [
|
|
|
|
pyinotify
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-11-04 12:27:35 +00:00
|
|
|
eventlet
|
2021-09-18 10:52:07 +00:00
|
|
|
oslotest
|
2022-02-10 20:34:41 +00:00
|
|
|
pytestCheckHook
|
2021-09-18 10:52:07 +00:00
|
|
|
];
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
disabledTests = [
|
|
|
|
# not compatible with sandbox
|
|
|
|
"test_logging_handle_error"
|
2023-07-15 17:15:38 +00:00
|
|
|
# File which is used doesn't seem not to be present
|
|
|
|
"test_log_config_append_invalid"
|
2022-02-10 20:34:41 +00:00
|
|
|
];
|
2021-09-18 10:52:07 +00:00
|
|
|
|
2022-04-15 01:41:22 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"oslo_log"
|
|
|
|
];
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "oslo.log library";
|
|
|
|
homepage = "https://github.com/openstack/oslo.log";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = teams.openstack.members;
|
2023-07-15 17:15:38 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2021-09-18 10:52:07 +00:00
|
|
|
};
|
|
|
|
}
|