depot/third_party/nixpkgs/pkgs/development/python-modules/loguru/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

24 lines
823 B
Nix

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