python3Packages.pathlib2: use the locale specification from buildPythonPackage

Also remove glibcLocale from nativeCheckInputs,
without which the package still builds.

-6
-6
pkgs/development/python-modules/pathlib2/default.nix
··· 5 5 six, 6 6 pythonOlder, 7 7 scandir ? null, 8 - glibcLocales, 9 8 typing, 10 9 }: 11 10 ··· 25 24 scandir 26 25 typing 27 26 ]; 28 - nativeCheckInputs = [ glibcLocales ]; 29 - 30 - preCheck = '' 31 - export LC_ALL="en_US.UTF-8" 32 - ''; 33 27 34 28 meta = with lib; { 35 29 description = "This module offers classes representing filesystem paths with semantics appropriate for different operating systems";