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