2019-07-23 15:55:47 +01:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, pytest, mock }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "verboselogs";
|
|
|
|
version = "1.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "xolox";
|
|
|
|
repo = "python-verboselogs";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "10jzm8pkl49as4y2zyiidmfqqj5zmqg3p73jvx4lfxi0gmp1vhl5";
|
|
|
|
};
|
|
|
|
|
|
|
|
# do not run pylint plugin test, as astroid is a old unsupported version
|
|
|
|
checkPhase = ''
|
|
|
|
PATH=$PATH:$out/bin pytest . -k "not test_pylint_plugin"
|
|
|
|
'';
|
|
|
|
checkInputs = [ pytest mock ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Verbose logging for Python's logging module";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/xolox/python-verboselogs";
|
2019-07-23 15:55:47 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ eyjhb ];
|
|
|
|
};
|
|
|
|
}
|