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