From a40463a37a72bb4d997bd0f7dcffa0d53824d133 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sat, 4 Mar 2023 18:28:39 +0100 Subject: [PATCH] python310Packages.jupyer-core: Fix tests on darwin The platformdirs library in version 3 changed the config directory used on MacOS. Apply a patch, that updates the tests accordingly. --- pkgs/development/python-modules/jupyter-core/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/python-modules/jupyter-core/default.nix b/pkgs/development/python-modules/jupyter-core/default.nix index 6c5678be2cd9..a25681dda45a 100644 --- a/pkgs/development/python-modules/jupyter-core/default.nix +++ b/pkgs/development/python-modules/jupyter-core/default.nix @@ -2,6 +2,7 @@ , buildPythonPackage , pythonOlder , fetchFromGitHub +, fetchpatch , hatchling , platformdirs , traitlets @@ -24,6 +25,11 @@ buildPythonPackage rec { patches = [ ./tests_respect_pythonpath.patch + (fetchpatch { + # add support for platformdirs>=3 + url = "https://github.com/jupyter/jupyter_core/commit/ff4086cdbdac2ea79c18632e4e35acebc1f7cf57.patch"; + hash = "sha256-UhHO58xZ4hH47NBhOhsfBjgsUtA+1EIHxPBvnKA5w28="; + }) ]; nativeBuildInputs = [