nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 50 lines 893 B view raw
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.2.0"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.6"; 17 18 src = fetchPypi { 19 inherit pname version; 20 sha256 = "sha256-k2+qTtxkF0rT5LLPW8icePbf9jNopdo9uDp3NPA9SRo="; 21 }; 22 23 propagatedBuildInputs = [ 24 trio 25 ]; 26 27 checkInputs = [ 28 pytest-asyncio 29 pytestCheckHook 30 pytest-trio 31 ]; 32 33 disabledTestPaths = [ 34 # Timeout on Hydra 35 "tests/test_trio.py" 36 "tests/test_sansio.py" 37 "tests/test_socketserver.py" 38 ]; 39 40 pythonImportsCheck = [ 41 "siosocks" 42 ]; 43 44 meta = with lib; { 45 description = "Python socks 4/5 client/server library/framework"; 46 homepage = "https://github.com/pohmelie/siosocks"; 47 license = licenses.mit; 48 maintainers = with maintainers; [ fab ]; 49 }; 50}