2019-01-17 19:12:09 +00:00
|
|
|
{ lib
|
|
|
|
, glibcLocales
|
2018-10-10 19:01:40 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, six
|
|
|
|
, nose
|
|
|
|
, appdirs
|
|
|
|
, scandir
|
|
|
|
, backports_os
|
|
|
|
, typing
|
|
|
|
, pytz
|
|
|
|
, enum34
|
|
|
|
, pyftpdlib
|
|
|
|
, psutil
|
|
|
|
, mock
|
|
|
|
, pythonAtLeast
|
|
|
|
, isPy3k
|
2019-10-27 00:51:50 +00:00
|
|
|
, pytest
|
2018-10-10 19:01:40 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "fs";
|
2019-10-16 09:43:06 +00:00
|
|
|
version = "2.4.11";
|
2018-10-10 19:01:40 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-16 09:43:06 +00:00
|
|
|
sha256 = "cc99d476b500f993df8ef697b96dc70928ca2946a455c396a566efe021126767";
|
2018-10-10 19:01:40 +00:00
|
|
|
};
|
|
|
|
|
2019-01-17 19:12:09 +00:00
|
|
|
buildInputs = [ glibcLocales ];
|
2019-10-27 00:51:50 +00:00
|
|
|
checkInputs = [ nose pyftpdlib mock psutil pytest ];
|
2018-10-10 19:01:40 +00:00
|
|
|
propagatedBuildInputs = [ six appdirs pytz ]
|
2019-01-17 19:12:09 +00:00
|
|
|
++ lib.optionals (!isPy3k) [ backports_os ]
|
|
|
|
++ lib.optionals (!pythonAtLeast "3.6") [ typing ]
|
|
|
|
++ lib.optionals (!pythonAtLeast "3.5") [ scandir ]
|
|
|
|
++ lib.optionals (!pythonAtLeast "3.5") [ enum34 ];
|
2018-10-10 19:01:40 +00:00
|
|
|
|
|
|
|
LC_ALL="en_US.utf-8";
|
|
|
|
|
2019-01-17 19:12:09 +00:00
|
|
|
checkPhase = ''
|
2019-10-27 00:51:50 +00:00
|
|
|
HOME=$(mktemp -d) pytest -k 'not user_data_repr' --ignore=tests/test_opener.py
|
2019-01-17 19:12:09 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2018-10-10 19:01:40 +00:00
|
|
|
description = "Filesystem abstraction";
|
|
|
|
homepage = https://github.com/PyFilesystem/pyfilesystem2;
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ lovek323 ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|