blob: 2f367416fbbf6910715a72801eea9c38c68d2b19 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
{
lib,
stdenv,
async-timeout,
buildPythonPackage,
fetchPypi,
pytest-asyncio,
pytest-cov-stub,
pytest-mock,
pytestCheckHook,
setuptools,
siosocks,
trustme,
}:
buildPythonPackage rec {
pname = "aioftp";
version = "0.27.2";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-fASMMiAIF5bFmDKm/Z/Y+tl+POwSpQvjq8zy3LvrJho=";
};
build-system = [ setuptools ];
optional-dependencies = {
socks = [ siosocks ];
};
nativeCheckInputs = [
async-timeout
pytest-asyncio
pytest-cov-stub
pytest-mock
pytestCheckHook
trustme
]
++ lib.concatAttrValues optional-dependencies;
disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [
# uses 127.0.0.2, which macos doesn't like
"test_pasv_connection_pasv_forced_response_address"
];
pythonImportsCheck = [ "aioftp" ];
meta = {
description = "Python FTP client/server for asyncio";
homepage = "https://aioftp.readthedocs.io/";
changelog = "https://github.com/aio-libs/aioftp/blob/${version}/history.rst";
license = lib.licenses.asl20;
maintainers = [ ];
};
}
|