python3Packages.click: fix 'locale' path
importing click shells out to 'locale', which currently needs to be in PATH. Fix by setting patching locale command at runtime.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, pytest }:
|
||||
{ stdenv, buildPythonPackage, fetchPypi, substituteAll, glibc, pytest }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "click";
|
||||
@@ -9,6 +9,12 @@ buildPythonPackage rec {
|
||||
sha256 = "02qkfpykbq35id8glfgwc38yc430427yd05z1wc5cnld8zgicmgi";
|
||||
};
|
||||
|
||||
patches = stdenv.lib.optionals (stdenv.isLinux && !stdenv.hostPlatform.isMusl)
|
||||
(substituteAll {
|
||||
src = ./fix-paths.patch;
|
||||
locale = "${glibc.bin}/bin/locale";
|
||||
});
|
||||
|
||||
buildInputs = [ pytest ];
|
||||
|
||||
checkPhase = ''
|
||||
|
||||
Reference in New Issue
Block a user