1{ lib
2, stdenv
3, async-timeout
4, buildPythonPackage
5, fetchPypi
6, pytest-asyncio
7, pytestCheckHook
8, pythonOlder
9, siosocks
10, trustme
11}:
12
13buildPythonPackage rec {
14 pname = "aioftp";
15 version = "0.21.4";
16 format = "setuptools";
17
18 disabled = pythonOlder "3.7";
19
20 src = fetchPypi {
21 inherit pname version;
22 hash = "sha256-KLsm1GFsfDgaFUMoH5hwUbjS0dW/rwI9nn4sIQXFG7k=";
23 };
24
25 propagatedBuildInputs = [
26 siosocks
27 ];
28
29 nativeCheckInputs = [
30 async-timeout
31 pytest-asyncio
32 pytestCheckHook
33 trustme
34 ];
35
36 disabledTests = lib.optionals stdenv.isDarwin [
37 # uses 127.0.0.2, which macos doesn't like
38 "test_pasv_connection_pasv_forced_response_address"
39 ];
40
41 pythonImportsCheck = [
42 "aioftp"
43 ];
44
45 meta = with lib; {
46 description = "Python FTP client/server for asyncio";
47 homepage = "https://github.com/aio-libs/aioftp";
48 license = licenses.asl20;
49 maintainers = with maintainers; [ ];
50 };
51}