1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-29 20:45:29 +03:00
nixpkgs/pkgs/development/python-modules/loguru/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

61 lines
1.2 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, aiocontextvars
, buildPythonPackage
, colorama
, fetchpatch
, fetchPypi
, pytestCheckHook
, pythonOlder
}:
2019-07-02 19:20:21 -07:00
buildPythonPackage rec {
pname = "loguru";
2022-01-29 20:07:16 -05:00
version = "0.6.0";
format = "setuptools";
2020-08-25 12:07:09 +10:00
disabled = pythonOlder "3.5";
2019-07-02 19:20:21 -07:00
src = fetchPypi {
inherit pname version;
2022-01-29 20:07:16 -05:00
sha256 = "sha256-BmvQZ1jQpRPpg2/ZxrWnW/s/02hB9LmWvGC1R6MJ1Bw=";
2019-07-02 19:20:21 -07:00
};
propagatedBuildInputs = lib.optionals (pythonOlder "3.7") [
aiocontextvars
];
checkInputs = [
pytestCheckHook
colorama
];
disabledTestPaths = lib.optionals stdenv.isDarwin [
"tests/test_multiprocessing.py"
];
disabledTests = [
"test_time_rotation_reopening"
"test_file_buffering"
# Tests are failing with Python 3.10
"test_exception_others"
""
] ++ lib.optionals stdenv.isDarwin [
"test_rotation_and_retention"
"test_rotation_and_retention_timed_file"
"test_renaming"
"test_await_complete_inheritance"
];
pythonImportsCheck = [
"loguru"
];
2020-01-04 04:20:00 -05:00
meta = with lib; {
homepage = "https://github.com/Delgan/loguru";
2019-07-02 19:20:21 -07:00
description = "Python logging made (stupidly) simple";
license = licenses.mit;
maintainers = with maintainers; [ jakewaksbaum rmcgibbo ];
2019-07-02 19:20:21 -07:00
};
}