2017-12-05 19:21:57 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, six
|
|
|
|
, pythonOlder
|
2021-03-25 07:34:54 +00:00
|
|
|
, scandir ? null
|
2017-12-05 19:21:57 +00:00
|
|
|
, glibcLocales
|
2021-03-25 07:34:54 +00:00
|
|
|
, mock ? null
|
2017-12-05 19:21:57 +00:00
|
|
|
}:
|
|
|
|
|
2018-10-18 02:38:38 +00:00
|
|
|
buildPythonPackage rec {
|
2017-12-05 19:21:57 +00:00
|
|
|
pname = "pathlib2";
|
2019-10-16 09:43:10 +00:00
|
|
|
version = "2.3.5";
|
2017-12-05 19:21:57 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-16 09:43:10 +00:00
|
|
|
sha256 = "6cd9a47b597b37cc57de1c05e56fb1a1c9cc9fab04fe78c29acd090418529868";
|
2017-12-05 19:21:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ six ] ++ lib.optional (pythonOlder "3.5") scandir;
|
2017-12-30 11:25:11 +00:00
|
|
|
checkInputs = [ glibcLocales ] ++ lib.optional (pythonOlder "3.3") mock;
|
2017-12-05 19:21:57 +00:00
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
export LC_ALL="en_US.UTF-8"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "This module offers classes representing filesystem paths with semantics appropriate for different operating systems.";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://pypi.python.org/pypi/pathlib2/";
|
2017-12-05 19:21:57 +00:00
|
|
|
license = with lib.licenses; [ mit ];
|
|
|
|
};
|
2018-02-26 11:46:29 +00:00
|
|
|
}
|