nixpkgs/pkgs/development/python-modules/pathlib2/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
855 B
Nix
Raw Normal View History

2017-12-05 19:21:57 +00:00
{ lib
, buildPythonPackage
, fetchPypi
, six
, pythonOlder
, scandir ? null
2017-12-05 19:21:57 +00:00
, glibcLocales
2022-03-28 15:23:41 +00:00
, mock
, typing
2017-12-05 19:21:57 +00:00
}:
buildPythonPackage rec {
2017-12-05 19:21:57 +00:00
pname = "pathlib2";
version = "2.3.7.post1";
2017-12-05 19:21:57 +00:00
src = fetchPypi {
inherit pname version;
hash = "sha256-n+DtrYmLg8DD4ZnIQrJ+0hZkXS4Xd1ey3Wc4TUETxkE=";
2017-12-05 19:21:57 +00:00
};
2022-03-28 15:23:41 +00:00
propagatedBuildInputs = [ six ]
++ lib.optionals (pythonOlder "3.5") [ scandir typing ];
nativeCheckInputs = [ glibcLocales ]
2022-03-28 15:23:41 +00:00
++ lib.optional (pythonOlder "3.3") mock;
2017-12-05 19:21:57 +00:00
preCheck = ''
export LC_ALL="en_US.UTF-8"
'';
meta = with lib; {
2017-12-05 19:21:57 +00:00
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; [ SuperSandro2000 ];
2017-12-05 19:21:57 +00:00
};
}