From f539b24544dfc7f00c61bcccf6680a5b1425f91b Mon Sep 17 00:00:00 2001 From: Hendrik Sokolowski Date: Sun, 29 Oct 2023 01:07:11 +0200 Subject: [PATCH] add forecast-solar --- hosts/giggles/forecast-solar.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 hosts/giggles/forecast-solar.nix 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 + ]; +}