about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/loguru/default.nix
blob: c06f5d6cd0880f8d1c9b57243153941a7792c2b5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ lib, buildPythonPackage, fetchPypi, isPy27, pytest, colorama }:

buildPythonPackage rec {
  pname = "loguru";
  version = "0.3.1";
  
  disabled = isPy27;
  src = fetchPypi {
    inherit pname version;
    sha256 = "14pmxyx4kwyafdifqzal121mpdd89lxbjgn0zzi9z6fmzk6pr5h2";
  };

  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 ];
  };
}