2021-09-18 10:52:07 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, 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";
|
2022-04-15 01:41:22 +00:00
|
|
|
version = "4.7.0";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "oslo.log";
|
|
|
|
inherit version;
|
2022-04-15 01:41:22 +00:00
|
|
|
hash = "sha256-ycLEyW098LLuuTG0djvbCpBbqvKbiVgW2Vd41p+hJwc=";
|
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
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
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"
|
|
|
|
];
|
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;
|
|
|
|
};
|
|
|
|
}
|