Files
nixpkgs/pkgs/development/python-modules/livekit-protocol/default.nix
Michael Daniels 487a438206 livekit-protocol: 1.0.12 -> 1.0.6
This is in fact an upgrade because the package incorrectly used the "rtc-"
version prefix for `src` but the `protocol-` version prefix for the updateScript.

Since this is the protocol; I assume we should use the protocol one.

Diff: https://github.com/livekit/python-sdks/compare/rtc-v1.0.12...protocol-v1.0.6
2025-09-20 14:42:11 -04:00

46 lines
940 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
protobuf,
gitUpdater,
}:
buildPythonPackage rec {
pname = "livekit-protocol";
version = "1.0.6";
pyproject = true;
src = fetchFromGitHub {
owner = "livekit";
repo = "python-sdks";
tag = "protocol-v${version}";
hash = "sha256-Sl/pAwiCS7sAY8VHJzSqm/Mj92NsO5NLuxQ/Y5GnaAw=";
};
pypaBuildFlags = [ "livekit-protocol" ];
build-system = [ setuptools ];
dependencies = [
protobuf
];
pythonRemoveDeps = [ "types-protobuf" ];
doCheck = false; # no tests
pythonImportsCheck = [ "livekit" ];
passthru.updateScript = gitUpdater { rev-prefix = "protocol-v"; };
meta = {
description = "LiveKit real-time and server SDKs for Python";
homepage = "https://github.com/livekit/python-sdks/";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ soyouzpanda ];
platforms = lib.platforms.all;
};
}