Merge pull request #128965 from fabaff/bump-coloredlogs

python3Packages.coloredlogs: 15.0 -> 15.0.1
This commit is contained in:
Sandro 2021-07-05 20:33:34 +02:00 committed by GitHub
commit 971467eb5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,14 +5,14 @@
, humanfriendly
, verboselogs
, capturer
, pytest
, pytestCheckHook
, mock
, util-linux
}:
buildPythonPackage rec {
pname = "coloredlogs";
version = "15.0";
version = "15.0.1";
src = fetchFromGitHub {
owner = "xolox";
@ -21,19 +21,34 @@ buildPythonPackage rec {
sha256 = "sha256-C1Eo+XrrL3bwhT49KyOE6xjbAHJxn9Qy4s1RR5ERVtA=";
};
propagatedBuildInputs = [
humanfriendly
];
checkInputs = [
pytestCheckHook
mock
util-linux
verboselogs
capturer
];
# capturer is broken on darwin / py38, so we skip the test until a fix for
# https://github.com/xolox/python-capturer/issues/10 is released.
doCheck = !stdenv.isDarwin;
checkPhase = ''
PATH=$PATH:$out/bin pytest . -k "not test_plain_text_output_format \
and not test_auto_install"
preCheck = ''
# Required for the CLI test
PATH=$PATH:$out/bin
'';
checkInputs = [ pytest mock util-linux verboselogs capturer ];
disabledTests = [
"test_plain_text_output_format"
"test_auto_install"
];
pythonImportsCheck = [ "coloredlogs" ];
propagatedBuildInputs = [ humanfriendly ];
meta = with lib; {
description = "Colored stream handler for Python's logging module";
homepage = "https://github.com/xolox/python-coloredlogs";