pythonPackages.coloredlogs: init at 10.0

This commit is contained in:
eyjhbb@gmail.com 2019-07-23 16:59:14 +02:00
parent b7eb5b6f79
commit 1de0c3275a
3 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,34 @@
{ lib, buildPythonPackage, fetchFromGitHub, stdenv, isPy3k, fetchpatch, humanfriendly, verboselogs, capturer, pytest, mock, utillinux }:
buildPythonPackage rec {
pname = "coloredlogs";
version = "10.0";
src = fetchFromGitHub {
owner = "xolox";
repo = "python-coloredlogs";
rev = version;
sha256 = "0rdvp4dfvzhx7z7s2jdl3fv7x1hazgpy5gc7bcf05bnbv2iia54a";
};
# patch by risicle
patches = lib.optional (stdenv.isDarwin && isPy3k) (fetchpatch {
name = "darwin-py3-capture-fix.patch";
url = "https://github.com/xolox/python-coloredlogs/pull/74.patch";
sha256 = "0pk7k94iz0gdripw623vzdl4hd83vwhsfzshl8pbvh1n6swi0xx9";
});
checkPhase = ''
PATH=$PATH:$out/bin pytest . -k "not test_plain_text_output_format"
'';
checkInputs = [ pytest mock utillinux ];
propagatedBuildInputs = [ humanfriendly verboselogs capturer ];
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 ];
};
}

View File

@ -1302,6 +1302,8 @@ in
clprover = callPackage ../applications/science/logic/clprover/clprover.nix { };
coloredlogs = with python3Packages; toPythonApplication coloredlogs;
colord-kde = libsForQt5.callPackage ../tools/misc/colord-kde {};
colpack = callPackage ../applications/science/math/colpack { };

View File

@ -1489,6 +1489,8 @@ in {
colorcet = callPackage ../development/python-modules/colorcet { };
coloredlogs = callPackage ../development/python-modules/coloredlogs { };
colorclass = callPackage ../development/python-modules/colorclass {};
colorlog = callPackage ../development/python-modules/colorlog { };