python3Packages.wn: fix build, add missing test deps

https://hydra.nixos.org/build/305658569

Changed files
+13 -1
pkgs
development
python-modules
+13 -1
pkgs/development/python-modules/wn/default.nix
···
buildPythonPackage,
fetchPypi,
pytestCheckHook,
+
pytest-benchmark,
pythonOlder,
hatchling,
httpx,
tomli,
+
starlette,
}:
buildPythonPackage rec {
···
tomli
];
-
nativeCheckInputs = [ pytestCheckHook ];
+
optional-dependencies.web = [
+
starlette
+
];
+
+
nativeCheckInputs = [
+
pytestCheckHook
+
pytest-benchmark
+
]
+
++ optional-dependencies.web;
+
+
pytestFlags = [ "--benchmark-disable" ];
preCheck = ''
export HOME=$(mktemp -d)