From 1396ca8aa49cb08d5f6a0b3a773f07df310ac0c8 Mon Sep 17 00:00:00 2001 From: mjallen18 Date: Thu, 27 Feb 2025 12:24:50 -0600 Subject: [PATCH] steam maybe --- hosts/homeassistant/homeassistant.nix | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/hosts/homeassistant/homeassistant.nix b/hosts/homeassistant/homeassistant.nix index 96fe995..5eab6cf 100644 --- a/hosts/homeassistant/homeassistant.nix +++ b/hosts/homeassistant/homeassistant.nix @@ -97,21 +97,18 @@ let }; # In configuration.nix or a separate file - pythonPackages.steam = pythonPackages.buildPythonPackage rec { - pname = "steam"; - version = "1.4.4"; # Use the appropriate version - - src = pythonPackages.fetchPypi { - inherit pname version; - sha256 = lib.fakeHash; # Add the correct SHA hash - }; - - # Dependencies if needed - propagatedBuildInputs = with pythonPackages; [ - # Add dependencies - ]; - }; -in + pythonSteam = pkgs.python3.withPackages (ps: with ps; [ + (ps.buildPythonPackage rec { + pname = "steam"; + version = "1.4.4"; # Check for the latest version + src = pkgs.fetchPypi { + inherit pname version; + sha256 = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="; # Get the correct hash + }; + doCheck = false; + propagatedBuildInputs = [ ps.requests ps.protobuf ]; + }) + ]); { services.home-assistant = { enable = true;