diff --git a/pkgs/development/python-modules/loguru/default.nix b/pkgs/development/python-modules/loguru/default.nix index d3776308759cd5..8811a7334d46c0 100644 --- a/pkgs/development/python-modules/loguru/default.nix +++ b/pkgs/development/python-modules/loguru/default.nix @@ -8,32 +8,37 @@ pytestCheckHook, pythonOlder, pytest-xdist, + exceptiongroup, + flit-core, + pytest-mypy-plugins, }: buildPythonPackage rec { pname = "loguru"; - version = "0.7.2"; - format = "setuptools"; + version = "0.7.3"; + + pyproject = true; disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "Delgan"; repo = pname; - rev = "refs/tags/${version}"; - hash = "sha256-1xcPAOOhjFmWSxmPj6NICRur3ITOuQRNNKPJlfp89Jw="; + tag = version; + hash = "sha256-tccEzzs9TtFAZM9s43cskF9llc81Ng28LqedjLiE1m4="; }; + build-system = [ flit-core ]; + nativeCheckInputs = [ pytestCheckHook pytest-xdist # massive speedup, not tested by upstream colorama freezegun - ]; + pytest-mypy-plugins + ] ++ lib.optional (pythonOlder "3.10") exceptiongroup; - disabledTestPaths = [ - "tests/test_type_hinting.py" # avoid dependency on mypy - ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ "tests/test_multiprocessing.py" ]; + disabledTestPaths = lib.optionals stdenv.hostPlatform.isDarwin [ "tests/test_multiprocessing.py" ]; disabledTests = [ @@ -52,12 +57,12 @@ buildPythonPackage rec { pythonImportsCheck = [ "loguru" ]; - meta = with lib; { + meta = { 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; [ + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ jakewaksbaum rmcgibbo ];