at master 979 B view raw
1{ 2 lib, 3 fetchFromGitHub, 4 buildPythonPackage, 5 setuptools, 6 websockets, 7 pytest-asyncio_0, 8 pytestCheckHook, 9}: 10 11buildPythonPackage rec { 12 pname = "aiorpcx"; 13 version = "0.25.0"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "kyuupichan"; 18 repo = "aiorpcX"; 19 tag = version; 20 hash = "sha256-mFg9mWrlnfXiQpgZ1rxvUy9TBfwy41XEKmsCf2nvxGo="; 21 }; 22 23 build-system = [ setuptools ]; 24 25 optional-dependencies.ws = [ websockets ]; 26 27 nativeCheckInputs = [ 28 pytest-asyncio_0 29 pytestCheckHook 30 ] 31 ++ lib.flatten (lib.attrValues optional-dependencies); 32 33 disabledTests = [ 34 # network access 35 "test_create_connection_resolve_good" 36 ]; 37 38 pythonImportsCheck = [ "aiorpcx" ]; 39 40 meta = with lib; { 41 description = "Transport, protocol and framing-independent async RPC client and server implementation"; 42 homepage = "https://github.com/kyuupichan/aiorpcX"; 43 license = licenses.mit; 44 maintainers = with maintainers; [ prusnak ]; 45 }; 46}