nixos-configs/scopedPackages/hass-components/tuya-local/default.nix
matt1432 392a2038f7
All checks were successful
Discord / discord commits (push) Has been skipped
fix(tuya): use overridePythonAttrs
2025-01-07 00:05:55 -05:00

20 lines
516 B
Nix

{
buildHassComponent,
pkgs,
...
}: let
python3Packages = pkgs.python3Packages.override {
overrides = final: prev: {
tinytuya = prev.tinytuya.overridePythonAttrs (o: rec {
version = "1.16.0";
src = pkgs.fetchFromGitHub {
owner = "jasonacox";
repo = "tinytuya";
rev = "v${version}";
hash = "sha256-K65kZjLa5AJG9FEYAs/Jf2UC8qiP7BkC8znHMHMYeg4=";
};
});
};
};
in
buildHassComponent ./tinytuya.nix {inherit python3Packages;}