Merge pull request #328930 from dotlambda/python3Packages.voip-utils
home-assistant: support voip component
This commit is contained in:
commit
c8cf28e22c
47
pkgs/development/python-modules/voip-utils/default.nix
Normal file
47
pkgs/development/python-modules/voip-utils/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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"
|
||||
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user