diff --git a/hosts/giggles/forecast-solar.nix b/hosts/giggles/forecast-solar.nix new file mode 100644 index 00000000..90f276d5 --- /dev/null +++ b/hosts/giggles/forecast-solar.nix @@ -0,0 +1,19 @@ +{ pkgs, python311 }: + +python311.pkgs.buildPythonPackage rec { + pname = "forecast_solar"; + version = "3.0.0"; + src = pkgs.fetchFromGitHub { + owner = "home-assistant-libs"; + repo = "forecast_solar"; + rev = version; + sha256 = "Go0DF2qyVyGVYEeoEEuxsSR9Ge8Pg4S77zM1HL83ELc="; + }; + + pythonImportsCheck = [ "pytest" "flake8" ]; + + propagatedBuildInputs = with python311.pkgs; [ + pytest + flake8 + ]; +}