nixpkgs/pkgs/development/python-modules/oslo-log/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

62 lines
1 KiB
Nix
Raw Normal View History

2021-09-11 12:14:53 +02:00
{ lib
, stdenv
, buildPythonPackage
, fetchPypi
, oslo-config
, oslo-context
, oslo-serialization
, oslo-utils
, oslotest
, pbr
, pyinotify
, python-dateutil
2022-02-07 05:06:23 +01:00
, pytestCheckHook
, pythonOlder
2021-09-11 12:14:53 +02:00
}:
buildPythonPackage rec {
pname = "oslo-log";
version = "4.7.0";
format = "setuptools";
disabled = pythonOlder "3.6";
2021-09-11 12:14:53 +02:00
src = fetchPypi {
pname = "oslo.log";
inherit version;
hash = "sha256-ycLEyW098LLuuTG0djvbCpBbqvKbiVgW2Vd41p+hJwc=";
2021-09-11 12:14:53 +02:00
};
propagatedBuildInputs = [
oslo-config
oslo-context
oslo-serialization
oslo-utils
pbr
python-dateutil
] ++ lib.optionals stdenv.isLinux [
pyinotify
];
checkInputs = [
oslotest
2022-02-07 05:06:23 +01:00
pytestCheckHook
2021-09-11 12:14:53 +02:00
];
2022-02-07 05:06:23 +01:00
disabledTests = [
# not compatible with sandbox
"test_logging_handle_error"
];
2021-09-11 12:14:53 +02:00
pythonImportsCheck = [
"oslo_log"
];
2021-09-11 12:14:53 +02:00
meta = with lib; {
description = "oslo.log library";
homepage = "https://github.com/openstack/oslo.log";
license = licenses.asl20;
maintainers = teams.openstack.members;
};
}