depot/third_party/nixpkgs/pkgs/development/python-modules/pathlib2/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

37 lines
864 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, six
, pythonOlder
, scandir ? null
, glibcLocales
, mock
, 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 ]
++ lib.optional (pythonOlder "3.3") mock;
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 = with maintainers; [ ];
};
}