1{ stdenv, buildPythonPackage, fetchPypi, pytest }:
2
3buildPythonPackage rec {
4 pname = "colorlog";
5 version = "4.2.1";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "066i7904vc7814gqnlprksf0ikz2dmviw93r2mr7sf53qci5irbm";
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}