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