3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/pathlib2/default.nix

33 lines
761 B
Nix
Raw Normal View History

2017-12-05 19:21:57 +00:00
{ lib
, buildPythonPackage
, fetchPypi
, six
, pythonOlder
, scandir
, glibcLocales
2017-12-30 11:25:11 +00:00
, mock
2017-12-05 19:21:57 +00:00
}:
buildPythonPackage rec {
2017-12-05 19:21:57 +00:00
pname = "pathlib2";
2019-01-17 15:13:04 +00:00
version = "2.3.3";
2017-12-05 19:21:57 +00:00
src = fetchPypi {
inherit pname version;
2019-01-17 15:13:04 +00:00
sha256 = "25199318e8cc3c25dcb45cbe084cc061051336d5a9ea2a12448d3d8cb748f742";
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.";
homepage = https://pypi.python.org/pypi/pathlib2/;
license = with lib.licenses; [ mit ];
};
}