1{ stdenv, buildPythonPackage, fetchPypi, pytest }:
2
3buildPythonPackage rec {
4 pname = "colorlog";
5 version = "4.0.2";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "3cf31b25cbc8f86ec01fef582ef3b840950dea414084ed19ab922c8b493f9b42";
10 };
11
12 checkInputs = [ pytest ];
13
14 checkPhase = ''
15 py.test -p no:logging
16 '';
17
18 meta = with stdenv.lib; {
19 description = "Log formatting with colors";
20 homepage = https://github.com/borntyping/python-colorlog;
21 license = licenses.mit;
22 maintainers = with maintainers; [ dotlambda ];
23 };
24}