depot/third_party/nixpkgs/pkgs/development/python-modules/voip-utils/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

47 lines
1 KiB
Nix

{
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 ];
};
}