os/hosts/giggles/forecast-solar.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
417 B
Nix
Raw Normal View History

2023-10-28 23:07:11 +00:00
{ 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
];
}