2021-01-10 23:54:33 -08:00
|
|
|
{ lib, stdenv, buildPythonPackage, fetchPypi, isPy27, colorama, pytestCheckHook }:
|
2019-07-02 19:20:21 -07:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "loguru";
|
2020-09-29 21:51:57 -07:00
|
|
|
version = "0.5.3";
|
2020-08-24 19:07:09 -07:00
|
|
|
|
2019-07-02 19:20:21 -07:00
|
|
|
disabled = isPy27;
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-09-29 21:51:57 -07:00
|
|
|
sha256 = "b28e72ac7a98be3d28ad28570299a393dfcd32e5e3f6a353dec94675767b6319";
|
2019-07-02 19:20:21 -07:00
|
|
|
};
|
|
|
|
|
2020-01-04 01:20:00 -08:00
|
|
|
checkInputs = [ pytestCheckHook colorama ];
|
2019-07-02 19:20:21 -07:00
|
|
|
|
2020-08-13 21:21:00 -07:00
|
|
|
pytestFlagsArray = stdenv.lib.optionals stdenv.isDarwin [ "--ignore=tests/test_multiprocessing.py" ];
|
|
|
|
|
2020-01-04 01:20:00 -08:00
|
|
|
disabledTests = [ "test_time_rotation_reopening" "test_file_buffering" ]
|
2020-01-25 01:30:00 -08:00
|
|
|
++ stdenv.lib.optionals stdenv.isDarwin [ "test_rotation_and_retention" "test_rotation_and_retention_timed_file" "test_renaming" "test_await_complete_inheritance" ];
|
2020-01-04 01:20:00 -08:00
|
|
|
|
2021-01-10 23:54:33 -08:00
|
|
|
meta = with lib; {
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/Delgan/loguru";
|
2019-07-02 19:20:21 -07:00
|
|
|
description = "Python logging made (stupidly) simple";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jakewaksbaum ];
|
|
|
|
};
|
|
|
|
}
|