at 24.11-pre 1.4 kB view raw
1{ 2 lib, 3 stdenv, 4 buildPythonPackage, 5 colorama, 6 fetchFromGitHub, 7 freezegun, 8 pytestCheckHook, 9 pythonOlder, 10}: 11 12buildPythonPackage rec { 13 pname = "loguru"; 14 version = "0.7.2"; 15 format = "setuptools"; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchFromGitHub { 20 owner = "Delgan"; 21 repo = pname; 22 rev = "refs/tags/${version}"; 23 hash = "sha256-1xcPAOOhjFmWSxmPj6NICRur3ITOuQRNNKPJlfp89Jw="; 24 }; 25 26 nativeCheckInputs = [ 27 pytestCheckHook 28 colorama 29 freezegun 30 ]; 31 32 disabledTestPaths = [ 33 "tests/test_type_hinting.py" # avoid dependency on mypy 34 ] ++ lib.optionals stdenv.isDarwin [ "tests/test_multiprocessing.py" ]; 35 36 disabledTests = 37 [ 38 # fails on some machine configurations 39 # AssertionError: assert '' != '' 40 "test_file_buffering" 41 ] 42 ++ lib.optionals stdenv.isDarwin [ 43 "test_rotation_and_retention" 44 "test_rotation_and_retention_timed_file" 45 "test_renaming" 46 "test_await_complete_inheritance" 47 ]; 48 49 pythonImportsCheck = [ "loguru" ]; 50 51 meta = with lib; { 52 description = "Python logging made (stupidly) simple"; 53 homepage = "https://github.com/Delgan/loguru"; 54 changelog = "https://github.com/delgan/loguru/releases/tag/${version}"; 55 license = licenses.mit; 56 maintainers = with maintainers; [ 57 jakewaksbaum 58 rmcgibbo 59 ]; 60 }; 61}