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