python3Packages.loguru: unbreak (#117381)
This commit is contained in:
parent
76552e95cc
commit
0df63c9543
|
@ -1,19 +1,36 @@
|
||||||
{ lib, stdenv, buildPythonPackage, fetchPypi, isPy27, colorama, pytestCheckHook }:
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, fetchpatch
|
||||||
|
, isPy27
|
||||||
|
, colorama
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonAtLeast
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "loguru";
|
pname = "loguru";
|
||||||
version = "0.5.3";
|
version = "0.5.3";
|
||||||
|
|
||||||
disabled = isPy27;
|
# python3.9 compatibility should be in the next release after 0.5.3
|
||||||
|
disabled = isPy27 || pythonAtLeast "3.9";
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "b28e72ac7a98be3d28ad28570299a393dfcd32e5e3f6a353dec94675767b6319";
|
sha256 = "b28e72ac7a98be3d28ad28570299a393dfcd32e5e3f6a353dec94675767b6319";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# Fixes tests with pytest>=6.2.2. Will be part of the next release after 0.5.3
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://github.com/Delgan/loguru/commit/31cf758ee9d22dbfa125f38153782fe20ac9dce5.patch";
|
||||||
|
sha256 = "1lzbs8akg1s7s6xjl3samf4c4bpssqvwg5fn3mwlm4ysr7jd5y67";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
checkInputs = [ pytestCheckHook colorama ];
|
checkInputs = [ pytestCheckHook colorama ];
|
||||||
|
|
||||||
pytestFlagsArray = lib.optionals stdenv.isDarwin [ "--ignore=tests/test_multiprocessing.py" ];
|
disabledTestPaths = lib.optionals stdenv.isDarwin [ "tests/test_multiprocessing.py" ];
|
||||||
|
|
||||||
disabledTests = [ "test_time_rotation_reopening" "test_file_buffering" ]
|
disabledTests = [ "test_time_rotation_reopening" "test_file_buffering" ]
|
||||||
++ lib.optionals stdenv.isDarwin [ "test_rotation_and_retention" "test_rotation_and_retention_timed_file" "test_renaming" "test_await_complete_inheritance" ];
|
++ lib.optionals stdenv.isDarwin [ "test_rotation_and_retention" "test_rotation_and_retention_timed_file" "test_renaming" "test_await_complete_inheritance" ];
|
||||||
|
|
||||||
|
@ -21,6 +38,6 @@ buildPythonPackage rec {
|
||||||
homepage = "https://github.com/Delgan/loguru";
|
homepage = "https://github.com/Delgan/loguru";
|
||||||
description = "Python logging made (stupidly) simple";
|
description = "Python logging made (stupidly) simple";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ jakewaksbaum ];
|
maintainers = with maintainers; [ jakewaksbaum rmcgibbo ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue