1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-04 06:42:33 +03:00
nixpkgs/pkgs/development/python-modules/pathlib2/default.nix

37 lines
851 B
Nix
Raw Normal View History

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