1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/python-modules/loguru/default.nix

25 lines
620 B
Nix
Raw Normal View History

2019-07-03 03:20:21 +01:00
{ lib, buildPythonPackage, fetchPypi, isPy27, pytest, colorama }:
buildPythonPackage rec {
pname = "loguru";
2019-12-19 19:31:15 +00:00
version = "0.4.0";
2019-07-03 03:20:21 +01:00
disabled = isPy27;
src = fetchPypi {
inherit pname version;
2019-12-19 19:31:15 +00:00
sha256 = "d5ddf363b7e0e562652f283f74a89bf35601baf16b70f2cd2736a2f8c6638748";
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 ];
};
}