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