Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 926 B view raw
1{ stdenv, buildPythonPackage, fetchPypi, isPy27, colorama, pytestCheckHook }: 2 3buildPythonPackage rec { 4 pname = "loguru"; 5 version = "0.5.1"; 6 7 disabled = isPy27; 8 src = fetchPypi { 9 inherit pname version; 10 sha256 = "70201d5fce26da89b7a5f168caa2bb674e06b969829f56737db1d6472e53e7c3"; 11 }; 12 13 checkInputs = [ pytestCheckHook colorama ]; 14 15 pytestFlagsArray = stdenv.lib.optionals stdenv.isDarwin [ "--ignore=tests/test_multiprocessing.py" ]; 16 17 disabledTests = [ "test_time_rotation_reopening" "test_file_buffering" ] 18 ++ stdenv.lib.optionals stdenv.isDarwin [ "test_rotation_and_retention" "test_rotation_and_retention_timed_file" "test_renaming" "test_await_complete_inheritance" ]; 19 20 meta = with stdenv.lib; { 21 homepage = "https://github.com/Delgan/loguru"; 22 description = "Python logging made (stupidly) simple"; 23 license = licenses.mit; 24 maintainers = with maintainers; [ jakewaksbaum ]; 25 }; 26}