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