nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 45 lines 940 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 protobuf, 7 gitUpdater, 8}: 9 10buildPythonPackage rec { 11 pname = "livekit-protocol"; 12 version = "1.1.0"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "livekit"; 17 repo = "python-sdks"; 18 tag = "protocol-v${version}"; 19 hash = "sha256-u89KM1Lio1gELIzwhmBJFCf1c29cfGu0WsMf8Vvsi8M="; 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}