nixpkgs/pkgs/development/python-modules/colorlog/default.nix
2020-12-01 14:44:10 +01:00

25 lines
561 B
Nix

{ stdenv, buildPythonPackage, fetchPypi, pytest }:
buildPythonPackage rec {
pname = "colorlog";
version = "4.6.2";
src = fetchPypi {
inherit pname version;
sha256 = "54e5f153419c22afc283c130c4201db19a3dbd83221a0f4657d5ee66234a2ea4";
};
checkInputs = [ pytest ];
checkPhase = ''
py.test -p no:logging
'';
meta = with stdenv.lib; {
description = "Log formatting with colors";
homepage = "https://github.com/borntyping/python-colorlog";
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
};
}