nixpkgs/pkgs/by-name/ho/homeassistant-satellite/package.nix
Martin Weinelt be5b79beae
homeassistant-satellite: relax aiohttp constraint
Checking runtime dependencies for homeassistant_satellite-2.3.0-py3-none-any.whl
  - aiohttp==3.8.4 not satisifeid by version 3.8.6
2023-12-20 20:10:28 +01:00

61 lines
1.3 KiB
Nix

{ lib
, python3
, fetchFromGitHub
}:
python3.pkgs.buildPythonApplication rec {
pname = "homeassistant-satellite";
version = "2.3.0";
pyproject = true;
src = fetchFromGitHub {
owner = "synesthesiam";
repo = "homeassistant-satellite";
rev = "v${version}";
hash = "sha256-iosutOpkpt0JJIMyALuQSDLj4jk57ITShVyPYlQgMFg=";
};
nativeBuildInputs = with python3.pkgs; [
pythonRelaxDepsHook
setuptools
];
pythonRelaxDeps = [
"aiohttp"
];
propagatedBuildInputs = with python3.pkgs; [
aiohttp
];
passthru.optional-dependencies = {
pulseaudio = with python3.pkgs; [
pasimple
pulsectl
];
silerovad = with python3.pkgs; [
numpy
onnxruntime
];
webrtc = with python3.pkgs; [
webrtc-noise-gain
];
};
pythonImportsCheck = [
"homeassistant_satellite"
];
# no tests
doCheck = false;
meta = with lib; {
changelog = "https://github.com/synesthesiam/homeassistant-satellite/blob/v${version}/CHANGELOG.md";
description = "Streaming audio satellite for Home Assistant";
homepage = "https://github.com/synesthesiam/homeassistant-satellite";
license = licenses.mit;
maintainers = with maintainers; [ hexa ];
mainProgram = "homeassistant-satellite";
};
}