Merge pull request #166097 from SuperSandro2000/pythlib2

This commit is contained in:
Sandro
2022-03-29 12:27:56 +02:00
committed by GitHub
@@ -5,7 +5,8 @@
, pythonOlder
, scandir ? null
, glibcLocales
, mock ? null
, mock
, typing
}:
buildPythonPackage rec {
@@ -17,16 +18,19 @@ buildPythonPackage rec {
sha256 = "sha256-n+DtrYmLg8DD4ZnIQrJ+0hZkXS4Xd1ey3Wc4TUETxkE=";
};
propagatedBuildInputs = [ six ] ++ lib.optional (pythonOlder "3.5") scandir;
checkInputs = [ glibcLocales ] ++ lib.optional (pythonOlder "3.3") mock;
propagatedBuildInputs = [ six ]
++ lib.optionals (pythonOlder "3.5") [ scandir typing ];
checkInputs = [ glibcLocales ]
++ lib.optional (pythonOlder "3.3") mock;
preCheck = ''
export LC_ALL="en_US.UTF-8"
'';
meta = {
meta = with lib; {
description = "This module offers classes representing filesystem paths with semantics appropriate for different operating systems.";
homepage = "https://pypi.python.org/pypi/pathlib2/";
license = with lib.licenses; [ mit ];
homepage = "https://pypi.org/project/pathlib2/";
license = with licenses; [ mit ];
maintainers = with maintainers; [ SuperSandro2000 ];
};
}