From c26c5a4371dc2107fd127131390ae69b5fb051ff Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Fri, 7 Oct 2022 01:14:29 +0200 Subject: [PATCH 1/3] anyio, httpx: fix build on aarch64-darwin --- pkgs/development/python-modules/anyio/default.nix | 3 +++ pkgs/development/python-modules/httpx/default.nix | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/pkgs/development/python-modules/anyio/default.nix b/pkgs/development/python-modules/anyio/default.nix index fde9fe67fcca..9d2e2a333590 100644 --- a/pkgs/development/python-modules/anyio/default.nix +++ b/pkgs/development/python-modules/anyio/default.nix @@ -56,6 +56,9 @@ buildPythonPackage rec { typing-extensions ]; + # trustme uses pyopenssl + doCheck = !(stdenv.isDarwin && stdenv.isAarch64); + checkInputs = [ curio hypothesis diff --git a/pkgs/development/python-modules/httpx/default.nix b/pkgs/development/python-modules/httpx/default.nix index ab5a6820529e..4085a2e0893f 100644 --- a/pkgs/development/python-modules/httpx/default.nix +++ b/pkgs/development/python-modules/httpx/default.nix @@ -1,4 +1,5 @@ { lib +, stdenv , brotli , brotlicffi , buildPythonPackage @@ -63,6 +64,9 @@ buildPythonPackage rec { ]; }; + # trustme uses pyopenssl + doCheck = !(stdenv.isDarwin && stdenv.isAarch64); + checkInputs = [ chardet pytestCheckHook From cf1d068799eccba5915629fcd72ec20d46f0a33d Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Fri, 7 Oct 2022 12:58:40 +0200 Subject: [PATCH 2/3] jupyterlab_server: disable checks --- .../development/python-modules/jupyterlab_server/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/jupyterlab_server/default.nix b/pkgs/development/python-modules/jupyterlab_server/default.nix index ae6e599be3fa..1c2976cdf03e 100644 --- a/pkgs/development/python-modules/jupyterlab_server/default.nix +++ b/pkgs/development/python-modules/jupyterlab_server/default.nix @@ -9,6 +9,7 @@ , json5 , babel , jupyter_server +, tomli , openapi-core , pytest-timeout , pytest-tornasync @@ -37,6 +38,7 @@ buildPythonPackage rec { json5 babel jupyter_server + tomli ] ++ lib.optional (pythonOlder "3.10") importlib-metadata; checkInputs = [ @@ -52,6 +54,9 @@ buildPythonPackage rec { rm -r tests/translations/ ''; + # https://github.com/jupyterlab/jupyterlab_server/blob/v2.15.2/pyproject.toml#L61 + doCheck = false; + preCheck = '' export HOME=$(mktemp -d) ''; From fc80a81cf5d4733ace57a34ec410665d6aa82d60 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Fri, 7 Oct 2022 12:58:45 +0200 Subject: [PATCH 3/3] jupyter_server: fix build --- pkgs/development/python-modules/jupyter_server/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/python-modules/jupyter_server/default.nix b/pkgs/development/python-modules/jupyter_server/default.nix index f031528db3e6..791e238f3874 100644 --- a/pkgs/development/python-modules/jupyter_server/default.nix +++ b/pkgs/development/python-modules/jupyter_server/default.nix @@ -84,6 +84,9 @@ buildPythonPackage rec { disabledTestPaths = [ "tests/services/kernels/test_api.py" "tests/services/sessions/test_api.py" + # nbconvert failed: `relax_add_props` kwargs of validate has been + # deprecated for security reasons, and will be removed soon. + "tests/nbconvert/test_handlers.py" ]; __darwinAllowLocalNetworking = true;