Merge pull request #166097 from SuperSandro2000/pythlib2
This commit is contained in:
@@ -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 ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user