1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 opuslib, 7 pytestCheckHook, 8}: 9 10buildPythonPackage rec { 11 pname = "voip-utils"; 12 version = "0.3.2"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "home-assistant-libs"; 17 repo = "voip-utils"; 18 tag = "v${version}"; 19 hash = "sha256-CI6YCT88ay4tDWHwaTL0Wr4b07mCn7440HdWE9+nxAw="; 20 }; 21 22 postPatch = '' 23 substituteInPlace pyproject.toml \ 24 --replace-fail "~=" ">=" 25 ''; 26 27 build-system = [ setuptools ]; 28 29 pythonRelaxDeps = [ "opuslib" ]; 30 31 dependencies = [ opuslib ]; 32 33 pythonImportsCheck = [ "voip_utils" ]; 34 35 nativeCheckInputs = [ pytestCheckHook ]; 36 37 meta = { 38 changelog = "https://github.com/home-assistant-libs/voip-utils/blob/${src.rev}/CHANGELOG.md"; 39 description = "Voice over IP Utilities"; 40 homepage = "https://github.com/home-assistant-libs/voip-utils"; 41 license = lib.licenses.asl20; 42 maintainers = with lib.maintainers; [ dotlambda ]; 43 }; 44}