diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/loguru/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/loguru/default.nix | 31 |
1 files changed, 14 insertions, 17 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/loguru/default.nix b/nixpkgs/pkgs/development/python-modules/loguru/default.nix index f89741e527af..75cc1f9b2c61 100644 --- a/nixpkgs/pkgs/development/python-modules/loguru/default.nix +++ b/nixpkgs/pkgs/development/python-modules/loguru/default.nix @@ -1,48 +1,44 @@ { lib , stdenv -, aiocontextvars , buildPythonPackage , colorama -, fetchpatch , fetchFromGitHub , freezegun -, mypy , pytestCheckHook , pythonOlder }: buildPythonPackage rec { pname = "loguru"; - # No release since Jan 2022, only master is compatible with Python 3.11 - # https://github.com/Delgan/loguru/issues/740 - version = "unstable-2023-01-20"; + version = "0.7.0"; format = "setuptools"; - disabled = pythonOlder "3.5"; + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "Delgan"; repo = pname; - rev = "07f94f3c8373733119f85aa8b9ca05ace3325a4b"; - hash = "sha256-lMGyQbBX3z6186ojs/iew7JMrG91ivPA679T9r+7xYw="; + rev = "refs/tags/${version}"; + hash = "sha256-JwhJPX58KrPdX237L43o77spycLAVFv3K9njJiRK30Y="; }; - propagatedBuildInputs = lib.optionals (pythonOlder "3.7") [ - aiocontextvars - ]; - nativeCheckInputs = [ pytestCheckHook colorama freezegun - mypy ]; - disabledTestPaths = lib.optionals stdenv.isDarwin [ + disabledTestPaths = [ + "tests/test_type_hinting.py" # avoid dependency on mypy + ] ++ lib.optionals stdenv.isDarwin [ "tests/test_multiprocessing.py" ]; - disabledTests = lib.optionals stdenv.isDarwin [ + disabledTests = [ + # fails on some machine configurations + # AssertionError: assert '' != '' + "test_file_buffering" + ] ++ lib.optionals stdenv.isDarwin [ "test_rotation_and_retention" "test_rotation_and_retention_timed_file" "test_renaming" @@ -54,8 +50,9 @@ buildPythonPackage rec { ]; meta = with lib; { - homepage = "https://github.com/Delgan/loguru"; description = "Python logging made (stupidly) simple"; + homepage = "https://github.com/Delgan/loguru"; + changelog = "https://github.com/delgan/loguru/releases/tag/${version}"; license = licenses.mit; maintainers = with maintainers; [ jakewaksbaum rmcgibbo ]; }; |