12 buildPythonPackage rec {
15 format = "setuptools";
17 disabled = pythonOlder "3.5";
20 inherit pname version;
21 sha256 = "sha256-BmvQZ1jQpRPpg2/ZxrWnW/s/02hB9LmWvGC1R6MJ1Bw=";
26 name = "fix-test-repr-infinite-recursion.patch";
27 url = "https://github.com/Delgan/loguru/commit/4fe21f66991abeb1905e24c3bc3c634543d959a2.patch";
28 hash = "sha256-NUOkgUS28TOazO0txMinFtaKwsi/J1Y7kqjjvMRCnR8=";
32 propagatedBuildInputs = lib.optionals (pythonOlder "3.7") [
41 disabledTestPaths = lib.optionals stdenv.isDarwin [
42 "tests/test_multiprocessing.py"
46 "test_time_rotation_reopening"
48 # Tests are failing with Python 3.10
49 "test_exception_others"
51 ] ++ lib.optionals stdenv.isDarwin [
52 "test_rotation_and_retention"
53 "test_rotation_and_retention_timed_file"
55 "test_await_complete_inheritance"
58 pythonImportsCheck = [
63 homepage = "https://github.com/Delgan/loguru";
64 description = "Python logging made (stupidly) simple";
65 license = licenses.mit;
66 maintainers = with maintainers; [ jakewaksbaum rmcgibbo ];