python3Packages.structlog: reset asyncio test mode to legacy
This commit is contained in:
parent
c81da79033
commit
877f057116
@ -1,12 +1,13 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, pythonOlder
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, pytest-asyncio
|
, pytest-asyncio
|
||||||
, pretend
|
, pretend
|
||||||
, freezegun
|
, freezegun
|
||||||
, simplejson
|
, simplejson
|
||||||
, six
|
, typing-extensions
|
||||||
, pythonAtLeast
|
, pythonAtLeast
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -22,9 +23,25 @@ buildPythonPackage rec {
|
|||||||
sha256 = "0bc5lj0732j0hjq89llgrncyzs6k3aaffvg07kr3la44w0hlrb4l";
|
sha256 = "0bc5lj0732j0hjq89llgrncyzs6k3aaffvg07kr3la44w0hlrb4l";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ six ];
|
propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [
|
||||||
|
typing-extensions
|
||||||
|
];
|
||||||
|
|
||||||
checkInputs = [ pytestCheckHook pytest-asyncio pretend freezegun simplejson ];
|
pythonImportsCheck = [
|
||||||
|
"structlog"
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
freezegun
|
||||||
|
pretend
|
||||||
|
pytest-asyncio
|
||||||
|
pytestCheckHook
|
||||||
|
simplejson
|
||||||
|
];
|
||||||
|
|
||||||
|
pytestFlagsArray = [
|
||||||
|
"--asyncio-mode=legacy"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Painless structural logging";
|
description = "Painless structural logging";
|
||||||
|
Loading…
Reference in New Issue
Block a user