2019-07-03 02:20:21 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy27, pytest, colorama }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "loguru";
|
2019-08-20 11:27:50 +00:00
|
|
|
version = "0.3.2";
|
2019-07-03 02:20:21 +00:00
|
|
|
|
|
|
|
disabled = isPy27;
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-08-20 11:27:50 +00:00
|
|
|
sha256 = "0apd3wcjbyhwzgw0fgzzn4dcgy10pqa8f1vf58d4hmszxvyqn4z3";
|
2019-07-03 02:20:21 +00: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 ];
|
|
|
|
};
|
|
|
|
}
|