2019-07-03 03:20:21 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy27, pytest, colorama }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "loguru";
|
2019-07-20 09:52:49 +01:00
|
|
|
version = "0.3.1";
|
2019-07-03 03:20:21 +01:00
|
|
|
|
|
|
|
disabled = isPy27;
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-07-20 09:52:49 +01:00
|
|
|
sha256 = "14pmxyx4kwyafdifqzal121mpdd89lxbjgn0zzi9z6fmzk6pr5h2";
|
2019-07-03 03:20:21 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytest colorama ];
|
|
|
|
checkPhase = ''
|
|
|
|
pytest -k 'not test_time_rotation_reopening'
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = https://github.com/Delgan/loguru;
|
|
|
|
description = "Python logging made (stupidly) simple";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jakewaksbaum ];
|
|
|
|
};
|
|
|
|
}
|