From cb3813b7b67842487abf8b5169537121a042d790 Mon Sep 17 00:00:00 2001 From: toonn Date: Wed, 13 Oct 2021 15:52:57 +0200 Subject: [PATCH] wheel: Normalize the filename with NFC The original problem with the normalization of the filename only occurred because it was in NFC. However, when trying to fix it by `mv`ing the file to a normalization-indifferent name, I used the NFD normalized name from my file system. This means it only works on normalizing file systems. The filename must be in the original encoding and will be normalized by normalizing file systems like HFS+. --- pkgs/development/python-modules/wheel/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/wheel/default.nix b/pkgs/development/python-modules/wheel/default.nix index 3a3b5a4fb945..1b899b59897f 100644 --- a/pkgs/development/python-modules/wheel/default.nix +++ b/pkgs/development/python-modules/wheel/default.nix @@ -18,7 +18,7 @@ buildPythonPackage rec { name = "${pname}-${version}-source"; extraPostFetch = '' cd $out - mv tests/testdata/unicode.dist/unicodedist/åäö_日本語.py \ + mv tests/testdata/unicode.dist/unicodedist/åäö_日本語.py \ tests/testdata/unicode.dist/unicodedist/æɐø_日本價.py patch -p1 < ${./0001-tests-Rename-a-a-o-_-.py-_-.py.patch} '';