1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 pyjwt, 7 aiohttp, 8 protobuf, 9 livekit-protocol, 10 pytestCheckHook, 11 gitUpdater, 12}: 13 14buildPythonPackage rec { 15 pname = "livekit-api"; 16 version = "1.0.6"; 17 pyproject = true; 18 19 src = fetchFromGitHub { 20 owner = "livekit"; 21 repo = "python-sdks"; 22 tag = "api-v${version}"; 23 hash = "sha256-AsTJC0j8dztua7B6JvAYQlHGsE1RCIGoCzfGgbHSnGU="; 24 }; 25 26 pypaBuildFlags = [ "livekit-api" ]; 27 28 build-system = [ setuptools ]; 29 30 dependencies = [ 31 pyjwt 32 aiohttp 33 protobuf 34 livekit-protocol 35 ]; 36 37 pythonRemoveDeps = [ "types-protobuf" ]; 38 39 nativeCheckInputs = [ 40 pytestCheckHook 41 ]; 42 43 enabledTestPaths = [ "livekit-api/tests" ]; 44 45 pythonImportsCheck = [ "livekit" ]; 46 47 passthru.updateScript = gitUpdater { rev-prefix = "api-v"; }; 48 49 meta = { 50 description = "LiveKit real-time and server SDKs for Python"; 51 homepage = "https://github.com/livekit/python-sdks/"; 52 license = lib.licenses.asl20; 53 maintainers = with lib.maintainers; [ soyouzpanda ]; 54 platforms = lib.platforms.all; 55 }; 56}