- Add flake.nix, flake.lock, and pyproject.toml provisioning Python 3.14, websockets, pyright, and ruff - Add .gitignore to exclude Python caches and local TV pairing keys - Add discover.py for SSDP multicast discovery of LG webOS TVs - Add tv_test.py for SSAP wss:// pairing, client-key persistence, and basic remote commands
26 lines
520 B
Nix
26 lines
520 B
Nix
{
|
|
description = "LG webOS local control testing environment";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
};
|
|
|
|
outputs = { self, nixpkgs }:
|
|
let
|
|
system = "x86_64-linux";
|
|
pkgs = import nixpkgs { inherit system; };
|
|
pythonEnv = pkgs.python3.withPackages (ps: [
|
|
ps.websockets
|
|
]);
|
|
in
|
|
{
|
|
devShells.${system}.default = pkgs.mkShell {
|
|
packages = [
|
|
pythonEnv
|
|
pkgs.pyright
|
|
pkgs.ruff
|
|
];
|
|
};
|
|
};
|
|
}
|