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