25 lines
787 B
Nix
Raw Normal View History

2020-01-04 04:20:00 -05:00
{ stdenv, buildPythonPackage, fetchPypi, isPy27, colorama, pytestCheckHook }:
2019-07-02 19:20:21 -07:00
buildPythonPackage rec {
pname = "loguru";
2019-12-19 20:31:15 +01:00
version = "0.4.0";
2019-07-02 19:20:21 -07:00
disabled = isPy27;
src = fetchPypi {
inherit pname version;
2019-12-19 20:31:15 +01:00
sha256 = "d5ddf363b7e0e562652f283f74a89bf35601baf16b70f2cd2736a2f8c6638748";
2019-07-02 19:20:21 -07:00
};
2020-01-04 04:20:00 -05:00
checkInputs = [ pytestCheckHook colorama ];
2019-07-02 19:20:21 -07:00
2020-01-04 04:20:00 -05:00
disabledTests = [ "test_time_rotation_reopening" "test_file_buffering" ]
++ stdenv.lib.optionals stdenv.isDarwin [ "test_rotation_and_retention" "test_rotation_and_retention_timed_file" "test_renaming" ];
meta = with stdenv.lib; {
2019-07-02 19:20:21 -07:00
homepage = https://github.com/Delgan/loguru;
description = "Python logging made (stupidly) simple";
license = licenses.mit;
maintainers = with maintainers; [ jakewaksbaum ];
};
}