mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 23:22:37 +00:00
pythonPackages.colorlog: 2.6.1 -> 3.1.2
This commit is contained in:
parent
0f5f904cdd
commit
9d196ef641
24
pkgs/development/python-modules/colorlog/default.nix
Normal file
24
pkgs/development/python-modules/colorlog/default.nix
Normal file
@ -0,0 +1,24 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, pytest }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "colorlog";
|
||||
version = "3.1.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0i21sd6pggr2gqza41vyq2rqyb552wf5iwl4bc16i7kqislbd53z";
|
||||
};
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
@ -1397,24 +1397,7 @@ in {
|
||||
};
|
||||
};
|
||||
|
||||
colorlog = buildPythonPackage rec {
|
||||
name = "colorlog-${version}";
|
||||
version = "2.6.1";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "mirror://pypi/c/colorlog/${name}.tar.gz";
|
||||
sha256 = "0djv6ky1yk28s1l093w8plg19kp88q4nyrm1vfxyq0s9j4pix29l";
|
||||
};
|
||||
|
||||
# No tests included
|
||||
doCheck = false;
|
||||
|
||||
meta = {
|
||||
description = "Log formatting with colors";
|
||||
homepage = https://github.com/borntyping/python-colorlog;
|
||||
license = licenses.free; # BSD-like
|
||||
};
|
||||
};
|
||||
colorlog = callPackage ../development/python-modules/colorlog { };
|
||||
|
||||
colour = buildPythonPackage rec {
|
||||
name = "${pname}-${version}";
|
||||
|
Loading…
Reference in New Issue
Block a user