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.
This commit is contained in:
Martin Weinelt 2023-03-04 18:28:39 +01:00
parent 535fe95820
commit a40463a37a
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -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 = [