1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pytest-asyncio,
6 pytest-trio,
7 pytestCheckHook,
8 pythonOlder,
9 trio,
10}:
11
12buildPythonPackage rec {
13 pname = "siosocks";
14 version = "0.3.0";
15 format = "setuptools";
16
17 disabled = pythonOlder "3.6";
18
19 src = fetchPypi {
20 inherit pname version;
21 hash = "sha256-uja79vWhPYOhhTUBIh+XpS4GnrYJy0/XpDXXQjnyHWM=";
22 };
23
24 propagatedBuildInputs = [ trio ];
25
26 nativeCheckInputs = [
27 pytest-asyncio
28 pytestCheckHook
29 pytest-trio
30 ];
31
32 disabledTests = [
33 # network access
34 "test_connection_direct_success"
35 "test_connection_socks_success"
36 "test_connection_socks_failed"
37 ];
38
39 disabledTestPaths = [
40 # Timeout on Hydra
41 "tests/test_trio.py"
42 "tests/test_sansio.py"
43 "tests/test_socketserver.py"
44 ];
45
46 pythonImportsCheck = [ "siosocks" ];
47
48 meta = with lib; {
49 description = "Python socks 4/5 client/server library/framework";
50 homepage = "https://github.com/pohmelie/siosocks";
51 license = licenses.mit;
52 maintainers = with maintainers; [ fab ];
53 };
54}