1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 freezegun,
6 pytestCheckHook,
7 pythonOlder,
8}:
9
10buildPythonPackage rec {
11 pname = "ftputil";
12 version = "5.1.0";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.6";
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-6eYtP9MH75xS5Dsz/ZJ1n8lMBNi1F4+F9kGxg5BtQ1M=";
20 };
21
22 nativeCheckInputs = [
23 freezegun
24 pytestCheckHook
25 ];
26
27 disabledTests = [
28 # Tests require network access
29 "test_public_servers"
30 "test_real_ftp"
31 "test_set_parser"
32 "test_upload"
33 ];
34
35 pythonImportsCheck = [ "ftputil" ];
36
37 meta = with lib; {
38 description = "High-level FTP client library (virtual file system and more)";
39 homepage = "https://ftputil.sschwarzer.net/";
40 license = licenses.bsd2;
41 maintainers = [ ];
42 };
43}