From 557b9aebd6530a6d0547c35ba05e8acf81327495 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Mon, 25 Apr 2022 01:23:08 +0200 Subject: [PATCH] python310Packages.jupyterlab_server: fix test execution --- .../python-modules/jupyterlab_server/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/jupyterlab_server/default.nix b/pkgs/development/python-modules/jupyterlab_server/default.nix index bcd06ebffb3..e612cfaeab0 100644 --- a/pkgs/development/python-modules/jupyterlab_server/default.nix +++ b/pkgs/development/python-modules/jupyterlab_server/default.nix @@ -25,7 +25,11 @@ buildPythonPackage rec { }; postPatch = '' - sed -i "/^addopts/d" pyproject.toml + substituteInPlace pyproject.toml \ + --replace "--cov jupyterlab_server --cov-report term-missing --cov-report term:skip-covered" "" + + # translation tests try to install additional packages into read only paths + rm -r tests/translations/ ''; propagatedBuildInputs = [ requests jsonschema pyjson5 Babel jupyter_server ]; @@ -37,8 +41,6 @@ buildPythonPackage rec { ruamel-yaml ]; - pytestFlagsArray = [ "--pyargs" "jupyterlab_server" ]; - __darwinAllowLocalNetworking = true; meta = with lib; {