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