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, stestr 14}: 15 16buildPythonPackage rec { 17 pname = "oslo-log"; 18 version = "4.6.1"; 19 20 src = fetchPypi { 21 pname = "oslo.log"; 22 inherit version; 23 sha256 = "0dlnxjci9mpwhgfv19fy1z7xrdp8m95skrj5dr60all3pr7n22f6"; 24 }; 25 26 propagatedBuildInputs = [ 27 oslo-config 28 oslo-context 29 oslo-serialization 30 oslo-utils 31 pbr 32 python-dateutil 33 ] ++ lib.optionals stdenv.isLinux [ 34 pyinotify 35 ]; 36 37 checkInputs = [ 38 oslotest 39 stestr 40 ]; 41 42 checkPhase = '' 43 stestr run 44 ''; 45 46 pythonImportsCheck = [ "oslo_log" ]; 47 48 meta = with lib; { 49 description = "oslo.log library"; 50 homepage = "https://github.com/openstack/oslo.log"; 51 license = licenses.asl20; 52 maintainers = teams.openstack.members; 53 }; 54}