25 lines
787 B
Nix
25 lines
787 B
Nix
{ stdenv, buildPythonPackage, fetchPypi, isPy27, colorama, pytestCheckHook }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "loguru";
|
|
version = "0.4.0";
|
|
|
|
disabled = isPy27;
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "d5ddf363b7e0e562652f283f74a89bf35601baf16b70f2cd2736a2f8c6638748";
|
|
};
|
|
|
|
checkInputs = [ pytestCheckHook colorama ];
|
|
|
|
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; {
|
|
homepage = https://github.com/Delgan/loguru;
|
|
description = "Python logging made (stupidly) simple";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ jakewaksbaum ];
|
|
};
|
|
}
|