about summary refs log tree commit diff
path: root/nixpkgs/pkgs/by-name/ho
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2023-10-22 19:49:40 +0000
committerAlyssa Ross <hi@alyssa.is>2023-10-22 19:49:40 +0000
commit20437996b9a2db0a9d32391d15fbd1e8872f3baf (patch)
tree6b3287be5160b30523675178d52ba440e4267465 /nixpkgs/pkgs/by-name/ho
parent0f33cd5208992fe4992f932374a872f7687b9a6d (diff)
parenta37d70e902fed9b9c0d1d4ac978e4373b86cc9bb (diff)
downloadnixlib-20437996b9a2db0a9d32391d15fbd1e8872f3baf.tar
nixlib-20437996b9a2db0a9d32391d15fbd1e8872f3baf.tar.gz
nixlib-20437996b9a2db0a9d32391d15fbd1e8872f3baf.tar.bz2
nixlib-20437996b9a2db0a9d32391d15fbd1e8872f3baf.tar.lz
nixlib-20437996b9a2db0a9d32391d15fbd1e8872f3baf.tar.xz
nixlib-20437996b9a2db0a9d32391d15fbd1e8872f3baf.tar.zst
nixlib-20437996b9a2db0a9d32391d15fbd1e8872f3baf.zip
Merge commit 'a37d70e902fed9b9c0d1d4ac978e4373b86cc9bb'
Diffstat (limited to 'nixpkgs/pkgs/by-name/ho')
-rw-r--r--nixpkgs/pkgs/by-name/ho/homeassistant-satellite/package.nix56
1 files changed, 56 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/by-name/ho/homeassistant-satellite/package.nix b/nixpkgs/pkgs/by-name/ho/homeassistant-satellite/package.nix
new file mode 100644
index 000000000000..26f90237f521
--- /dev/null
+++ b/nixpkgs/pkgs/by-name/ho/homeassistant-satellite/package.nix
@@ -0,0 +1,56 @@
+{ 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; [
+    setuptools
+    wheel
+  ];
+
+  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";
+  };
+}