Merge pull request #328930 from dotlambda/python3Packages.voip-utils

home-assistant: support voip component
This commit is contained in:
Martin Weinelt 2024-07-21 17:27:08 +02:00 committed by GitHub
commit c8cf28e22c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 52 additions and 1 deletions

View File

@ -0,0 +1,47 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
opuslib,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "voip-utils";
version = "0.1.0";
pyproject = true;
src = fetchFromGitHub {
owner = "home-assistant-libs";
repo = "voip-utils";
rev = "refs/tags/v${version}";
hash = "sha256-PG4L6KphH9JIZO76cCN8eClFE2CneEIExlXS+x79k3U=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "~=" ">="
'';
build-system = [ setuptools ];
pythonRelaxDeps = [ "opuslib" ];
dependencies = [ opuslib ];
pythonImportsCheck = [ "voip_utils" ];
nativeCheckInputs = [ pytestCheckHook ];
# no tests as of v0.1.0
doCheck = false;
meta = {
changelog = "https://github.com/home-assistant-libs/voip-utils/blob/${src.rev}/CHANGELOG.md";
description = "Voice over IP Utilities";
homepage = "https://github.com/home-assistant-libs/voip-utils";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ dotlambda ];
};
}

View File

@ -4885,8 +4885,9 @@
hassil
home-assistant-intents
mutagen
voip-utils
webrtc-noise-gain
]; # missing inputs: voip-utils
];
"volkszaehler" = ps: with ps; [
volkszaehler
];
@ -6018,6 +6019,7 @@
"vlc_telnet"
"vodafone_station"
"voicerss"
"voip"
"volumio"
"volvooncall"
"vulcan"

View File

@ -17024,6 +17024,8 @@ self: super: with self; {
vobject = callPackage ../development/python-modules/vobject { };
voip-utils = callPackage ../development/python-modules/voip-utils { };
volatile = callPackage ../development/python-modules/volatile { };
volkszaehler = callPackage ../development/python-modules/volkszaehler { };