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-06-16 17:23:12 +00:00
|
|
|
version = "5.0.0";
|
2022-04-15 01:41:22 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "oslo.log";
|
|
|
|
inherit version;
|
2022-06-16 17:23:12 +00:00
|
|
|
hash = "sha256-c6tyNKii1QvfUmyHTfocsrEIO6+a2VvC64r1YkidTQE=";
|
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; {
|
2022-06-16 17:23:12 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2021-09-18 10:52:07 +00:00
|
|
|
description = "oslo.log library";
|
|
|
|
homepage = "https://github.com/openstack/oslo.log";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = teams.openstack.members;
|
|
|
|
};
|
|
|
|
}
|