Commit 64958a23 authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt
Browse files

python3Packages.wn: fix build, add missing test deps

parent 585affb2
Loading
Loading
Loading
Loading
+13 −1
Original line number Diff line number Diff line
@@ -3,10 +3,12 @@
  buildPythonPackage,
  fetchPypi,
  pytestCheckHook,
  pytest-benchmark,
  pythonOlder,
  hatchling,
  httpx,
  tomli,
  starlette,
}:

buildPythonPackage rec {
@@ -28,7 +30,17 @@ buildPythonPackage rec {
    tomli
  ];

  nativeCheckInputs = [ pytestCheckHook ];
  optional-dependencies.web = [
    starlette
  ];

  nativeCheckInputs = [
    pytestCheckHook
    pytest-benchmark
  ]
  ++ optional-dependencies.web;

  pytestFlags = [ "--benchmark-disable" ];

  preCheck = ''
    export HOME=$(mktemp -d)