14 buildPythonPackage rec {
21 src = fetchFromGitHub {
24 rev = "92109c528f9f6c550df5e5325ca0fcd4f86b0909";
25 hash = "sha256-NxmC/4TTIEDVzrfMPN4PcT1JY4QCw8IBMy80XiM/o00=";
29 # https://github.com/orion-labs/opuslib/pull/22
31 name = "fix-variadic-functions-on-aarch64-darwin.patch";
32 url = "https://github.com/orion-labs/opuslib/commit/8aee916e4da4b3183d49cff5a986dc2408076d8d.patch";
33 hash = "sha256-oa1HCFHNS3ejzSf0jxv9NueUKOZgdCtpv+xTrjYW5os=";
35 # https://github.com/orion-labs/opuslib/pull/25
37 name = "fix-tests-when-using-libopus-1.4.patch";
38 url = "https://github.com/orion-labs/opuslib/commit/87a214fc98c1dcae38035e99fe8e279a160c4a52.patch";
39 hash = "sha256-UoOafyTFvWLY7ErtBhkXTZSgbMZFrg5DGxjbhqEI7wo=";
42 src = ./opuslib-paths.patch;
43 opusLibPath = "${libopus}/lib/libopus${stdenv.hostPlatform.extensions.sharedLibrary}";
47 build-system = [ setuptools ];
49 nativeCheckInputs = [ pytestCheckHook ];
52 "tests/{decoder,encoder,hl_decoder,hl_encoder}.py"
56 description = "Python bindings to the libopus, IETF low-delay audio codec";
57 homepage = "https://github.com/orion-labs/opuslib";
58 license = licenses.bsd3;
59 platforms = platforms.all;
60 maintainers = with maintainers; [ thelegy ];