jupyter_server: Patch unicode test for Darwin (#145993)

The test relies on creating and then reading files with unicode names
to/from disk. Apple's HFS+, the default file system until recently, is
unicode-normalizing with normal form D (NFD). So not all unicode file
names round-trip. This patch implements one imperfect solution.

ZHF: #144627
This commit is contained in:
toonn 2021-11-15 19:38:40 +01:00 committed by GitHub
parent 73d60f405a
commit 9e7f498eaf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,7 @@
{ lib { lib
, stdenv , stdenv
, buildPythonPackage , buildPythonPackage
, fetchpatch
, fetchPypi , fetchPypi
, pythonOlder , pythonOlder
, pytestCheckHook , pytestCheckHook
@ -34,6 +35,13 @@ buildPythonPackage rec {
sha256 = "c1f32e0c1807ab2de37bf70af97a36b4436db0bc8af3124632b1f4441038bf95"; sha256 = "c1f32e0c1807ab2de37bf70af97a36b4436db0bc8af3124632b1f4441038bf95";
}; };
patches = [ (fetchpatch
{ name = "Normalize-file-name-and-path.patch";
url = "https://github.com/jupyter-server/jupyter_server/pull/608/commits/345e26cdfd78651954b68708fa44119c2ac0dbd5.patch";
sha256 = "1kqz3dyh2w0h1g1fbvqa13q17hb6y32694rlaasyg213mq6g4k32";
})
];
propagatedBuildInputs = [ propagatedBuildInputs = [
argon2_cffi argon2_cffi
jinja2 jinja2