My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/coloredlogs/default.nix

58 lines
1.1 KiB

{ lib
, stdenv
, buildPythonPackage
, fetchFromGitHub
, humanfriendly
, verboselogs
, capturer
, pytestCheckHook
, mock
, util-linux
}:
buildPythonPackage rec {
pname = "coloredlogs";
version = "15.0.1";
src = fetchFromGitHub {
owner = "xolox";
repo = "python-coloredlogs";
rev = version;
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;
preCheck = ''
# Required for the CLI test
PATH=$PATH:$out/bin
'';
disabledTests = [
"test_plain_text_output_format"
"test_auto_install"
];
pythonImportsCheck = [ "coloredlogs" ];
meta = with lib; {
description = "Colored stream handler for Python's logging module";
homepage = "https://github.com/xolox/python-coloredlogs";
license = licenses.mit;
maintainers = with maintainers; [ eyjhb ];
};
}