blob: 5532b256346f3e06cef7476910b635c48c5d2a0e (
about) (
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
57
58
59
|
{
lib,
buildPythonPackage,
fetchPypi,
pytest-asyncio,
pytest-trio,
pytest-mock,
pytestCheckHook,
pythonOlder,
setuptools,
trio,
}:
buildPythonPackage rec {
pname = "siosocks";
version = "0.3.0";
pyproject = true;
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-uja79vWhPYOhhTUBIh+XpS4GnrYJy0/XpDXXQjnyHWM=";
};
build-system = [ setuptools ];
dependencies = [ trio ];
nativeCheckInputs = [
pytest-asyncio
pytest-mock
pytestCheckHook
pytest-trio
];
disabledTests = [
# network access
"test_connection_direct_success"
"test_connection_socks_success"
"test_connection_socks_failed"
];
disabledTestPaths = [
# Timeout on Hydra
"tests/test_trio.py"
"tests/test_sansio.py"
"tests/test_socketserver.py"
];
pythonImportsCheck = [ "siosocks" ];
meta = with lib; {
description = "Python socks 4/5 client/server library/framework";
homepage = "https://github.com/pohmelie/siosocks";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}
|