1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 opuslib,
7 pytestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "voip-utils";
12 version = "0.1.0";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "home-assistant-libs";
17 repo = "voip-utils";
18 rev = "refs/tags/v${version}";
19 hash = "sha256-PG4L6KphH9JIZO76cCN8eClFE2CneEIExlXS+x79k3U=";
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 # no tests as of v0.1.0
38 doCheck = false;
39
40 meta = {
41 changelog = "https://github.com/home-assistant-libs/voip-utils/blob/${src.rev}/CHANGELOG.md";
42 description = "Voice over IP Utilities";
43 homepage = "https://github.com/home-assistant-libs/voip-utils";
44 license = lib.licenses.asl20;
45 maintainers = with lib.maintainers; [ dotlambda ];
46 };
47}