1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 six, 6 pythonOlder, 7 scandir ? null, 8 glibcLocales, 9 typing, 10}: 11 12buildPythonPackage rec { 13 pname = "pathlib2"; 14 version = "2.3.7.post1"; 15 format = "setuptools"; 16 17 src = fetchPypi { 18 inherit pname version; 19 hash = "sha256-n+DtrYmLg8DD4ZnIQrJ+0hZkXS4Xd1ey3Wc4TUETxkE="; 20 }; 21 22 propagatedBuildInputs = 23 [ six ] 24 ++ lib.optionals (pythonOlder "3.5") [ 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."; 36 homepage = "https://pypi.org/project/pathlib2/"; 37 license = with licenses; [ mit ]; 38 maintainers = with maintainers; [ ]; 39 }; 40}