nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, stdenv
3, buildPythonPackage
4, fetchPypi
5, oslo-config
6, oslo-context
7, oslo-serialization
8, oslo-utils
9, oslotest
10, pbr
11, pyinotify
12, python-dateutil
13, pytestCheckHook
14, pythonOlder
15}:
16
17buildPythonPackage rec {
18 pname = "oslo-log";
19 version = "4.7.0";
20 format = "setuptools";
21
22 disabled = pythonOlder "3.6";
23
24 src = fetchPypi {
25 pname = "oslo.log";
26 inherit version;
27 hash = "sha256-ycLEyW098LLuuTG0djvbCpBbqvKbiVgW2Vd41p+hJwc=";
28 };
29
30 propagatedBuildInputs = [
31 oslo-config
32 oslo-context
33 oslo-serialization
34 oslo-utils
35 pbr
36 python-dateutil
37 ] ++ lib.optionals stdenv.isLinux [
38 pyinotify
39 ];
40
41 checkInputs = [
42 oslotest
43 pytestCheckHook
44 ];
45
46 disabledTests = [
47 # not compatible with sandbox
48 "test_logging_handle_error"
49 ];
50
51 pythonImportsCheck = [
52 "oslo_log"
53 ];
54
55 meta = with lib; {
56 broken = stdenv.isDarwin;
57 description = "oslo.log library";
58 homepage = "https://github.com/openstack/oslo.log";
59 license = licenses.asl20;
60 maintainers = teams.openstack.members;
61 };
62}