Merge pull request #122756 from knedlsepp/fix-prettytable

python37.pkgs.prettytable: Fix build
This commit is contained in:
Robert Scott 2021-05-12 22:00:46 +01:00 committed by GitHub
commit a7ecbfd6d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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"