Skip to content

Commit

Permalink
python3Packages.loguru: init at 0.3.0
Browse files Browse the repository at this point in the history
(cherry picked from commit a96bab4)
  • Loading branch information
jbaum98 authored and worldofpeace committed Jul 4, 2019
1 parent 5c0abc5 commit 2a0ca05
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
24 changes: 24 additions & 0 deletions pkgs/development/python-modules/loguru/default.nix
@@ -0,0 +1,24 @@
{ lib, buildPythonPackage, fetchPypi, isPy27, pytest, colorama }:

buildPythonPackage rec {
pname = "loguru";
version = "0.3.0";

disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "1b2phizcx2wbdm5np0s16yd68fc0isqnm8qs6l9pmlrlyf9gm87j";
};

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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Expand Up @@ -468,6 +468,8 @@ in {

logster = callPackage ../development/python-modules/logster { };

loguru = callPackage ../development/python-modules/loguru { };

logzero = callPackage ../development/python-modules/logzero { };

mail-parser = callPackage ../development/python-modules/mail-parser { };
Expand Down

0 comments on commit 2a0ca05

Please sign in to comment.