nixpkgs/pkgs/development/python-modules/coloredlogs/default.nix
2020-11-24 12:42:06 -05:00

38 lines
874 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, humanfriendly
, verboselogs
, capturer
, pytest
, mock
, util-linux
}:
buildPythonPackage rec {
pname = "coloredlogs";
version = "14.0";
src = fetchFromGitHub {
owner = "xolox";
repo = "python-coloredlogs";
rev = version;
sha256 = "0rnmxwrim4razlv4vi3krxk5lc5ksck6h5374j8avqwplika7q2x";
};
checkPhase = ''
PATH=$PATH:$out/bin pytest . -k "not test_plain_text_output_format \
and not test_auto_install"
'';
checkInputs = [ pytest mock util-linux ];
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 ];
};
}