depot/third_party/nixpkgs/pkgs/development/python-modules/pathlib2/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

40 lines
823 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
six,
pythonOlder,
scandir ? null,
glibcLocales,
typing,
}:
buildPythonPackage rec {
pname = "pathlib2";
version = "2.3.7.post1";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-n+DtrYmLg8DD4ZnIQrJ+0hZkXS4Xd1ey3Wc4TUETxkE=";
};
propagatedBuildInputs =
[ six ]
++ lib.optionals (pythonOlder "3.5") [
scandir
typing
];
nativeCheckInputs = [ glibcLocales ];
preCheck = ''
export LC_ALL="en_US.UTF-8"
'';
meta = with lib; {
description = "This module offers classes representing filesystem paths with semantics appropriate for different operating systems";
homepage = "https://pypi.org/project/pathlib2/";
license = with licenses; [ mit ];
maintainers = [ ];
};
}