Merge pull request #170154 from SuperSandro2000/jupyterlab-server

python310Packages.jupyterlab_server: fix test execution
This commit is contained in:
Sandro 2022-04-26 03:03:30 +02:00 committed by GitHub
commit 5465e16bc7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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; {