2020-01-04 09:20:00 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, isPy27, colorama, pytestCheckHook }:
|
2019-07-03 03:20:21 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "loguru";
|
2020-01-25 09:30:00 +00:00
|
|
|
version = "0.4.1";
|
2019-07-03 03:20:21 +01:00
|
|
|
|
|
|
|
disabled = isPy27;
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-01-25 09:30:00 +00:00
|
|
|
sha256 = "a6101fd435ac89ba5205a105a26a6ede9e4ddbb4408a6e167852efca47806d11";
|
2019-07-03 03:20:21 +01:00
|
|
|
};
|
|
|
|
|
2020-01-04 09:20:00 +00:00
|
|
|
checkInputs = [ pytestCheckHook colorama ];
|
2019-07-03 03:20:21 +01:00
|
|
|
|
2020-01-04 09:20:00 +00:00
|
|
|
disabledTests = [ "test_time_rotation_reopening" "test_file_buffering" ]
|
2020-01-25 09:30:00 +00: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 09:20:00 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2019-07-03 03:20:21 +01:00
|
|
|
homepage = https://github.com/Delgan/loguru;
|
|
|
|
description = "Python logging made (stupidly) simple";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jakewaksbaum ];
|
|
|
|
};
|
|
|
|
}
|