add pySVS for controlling SVS subwoofers

This commit is contained in:
Tyler Starr 2024-10-17 23:35:19 -07:00
parent d542cbffd8
commit b0050bc305
3 changed files with 35 additions and 0 deletions

View File

@ -12,6 +12,7 @@ in {
libimobiledevice # Library to support iPhone, iPod Touch and iPad devices on Linux
ifuse # fuse filesystem implementation to access the contents of iOS devices
usbtop
pySVS # control SVS subwoofers from the command-line
];
security.rtkit.enable = true;

View File

@ -8,4 +8,5 @@ final: prev: {
gnome-set-panel-monitor = final.callPackage ../pkgs/gnome-set-panel-monitor.nix {};
gnome-fullscreen-to-empty-workspace = final.callPackage ../pkgs/gnome-fullscreen-to-empty-workspace.nix {};
ryujinx = final.callPackage ../pkgs/ryujinx/default.nix {};
pySVS = final.callPackage ../pkgs/pySVS.nix {};
}

33
provision/pkgs/pySVS.nix Normal file
View File

@ -0,0 +1,33 @@
{ lib, stdenv, fetchFromGitHub, python3Packages }:
python3Packages.buildPythonApplication rec {
pname = "pySVS";
version = "0.0.1";
src = fetchFromGitHub {
owner = "starr-dusT";
repo = "pySVS";
rev = "5c483d96c58aab77a18b64f3003dd67be584977c";
sha256 = "sha256-2j4bIGmuQOBuRAy4s6M56USbrJ2SGK3cFYc3AkQ6lKg=";
};
format = "pyproject";
propagatedBuildInputs = with python3Packages; [
requests
bleak
pillow
setuptools
];
# There are no tests
doCheck = false;
meta = with lib; {
homepage = "https://github.com/starr-dusT/pySVS";
description = "Python CLI for controlling SVS subwoofers over bluetooth.";
mainProgram = "pySVS";
license = licenses.mit;
maintainers = [ maintainers.starr-dusT ];
};
}