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