Skip to content

Commit

Permalink
python3Packages.loguru: 0.7.2 -> 0.7.3 & cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
PerchunPak committed Dec 27, 2024
1 parent c090827 commit cd92499
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions pkgs/development/python-modules/loguru/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
[
Expand All @@ -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
];
Expand Down

0 comments on commit cd92499

Please sign in to comment.