Merge pull request #175193 from fabaff/verboselogs
python310Packages.verboselogs: switch to pytestCheckHook
This commit is contained in:
commit
b5702da24e
|
@ -1,21 +1,38 @@
|
||||||
{ lib, buildPythonPackage, fetchFromGitHub, pytest, mock }:
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, mock
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "verboselogs";
|
pname = "verboselogs";
|
||||||
version = "1.7";
|
version = "1.7";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "xolox";
|
owner = "xolox";
|
||||||
repo = "python-verboselogs";
|
repo = "python-verboselogs";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "10jzm8pkl49as4y2zyiidmfqqj5zmqg3p73jvx4lfxi0gmp1vhl5";
|
hash = "sha256-hcIdbn0gdkdJ33KcOx6uv0iMXW0x+i880SoROi+qX4I=";
|
||||||
};
|
};
|
||||||
|
|
||||||
# do not run pylint plugin test, as astroid is a old unsupported version
|
checkInputs = [
|
||||||
checkPhase = ''
|
pytestCheckHook
|
||||||
PATH=$PATH:$out/bin pytest . -k "not test_pylint_plugin"
|
mock
|
||||||
'';
|
];
|
||||||
checkInputs = [ pytest mock ];
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"verboselogs"
|
||||||
|
];
|
||||||
|
|
||||||
|
disabledTests = [
|
||||||
|
# Do not run pylint plugin test
|
||||||
|
"test_pylint_plugin"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Verbose logging for Python's logging module";
|
description = "Verbose logging for Python's logging module";
|
||||||
|
|
Loading…
Reference in a new issue