python37.pkgs.prettytable: Fix build

This commit is contained in:
Josef Kemetmüller 2021-05-12 21:02:50 +02:00
parent 808d88971a
commit c94913045f

View File

@ -4,6 +4,8 @@
, glibcLocales
, setuptools_scm
, wcwidth
, importlib-metadata
, pythonOlder
}:
buildPythonPackage rec {
@ -18,7 +20,11 @@ buildPythonPackage rec {
nativeBuildInputs = [ setuptools_scm ];
buildInputs = [ glibcLocales ];
propagatedBuildInputs = [ wcwidth ];
propagatedBuildInputs = [
wcwidth
] ++ lib.optionals (pythonOlder "3.8") [
importlib-metadata
];
preCheck = ''
export LANG="en_US.UTF-8"