Merge pull request #128310 from dotlambda/forecast-solar-init

This commit is contained in:
Sandro 2021-06-27 18:32:16 +02:00 committed by GitHub
commit a2fed6b076
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 37 additions and 0 deletions

View file

@ -0,0 +1,35 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, aiodns
, aiohttp
}:
buildPythonPackage rec {
pname = "forecast-solar";
version = "1.3.1";
src = fetchFromGitHub {
owner = "home-assistant-libs";
repo = "forecast_solar";
rev = version;
sha256 = "1kqzr1ypvdjw0zvac4spb6xdd2qpms9h8nr6vf0w9qx756ir0f95";
};
propagatedBuildInputs = [
aiodns
aiohttp
];
# no unit tests implemented
doCheck = false;
pythonImportsCheck = [ "forecast_solar" ];
meta = with lib; {
description = "Asynchronous Python client for getting forecast solar information";
homepage = "https://github.com/home-assistant-libs/forecast_solar";
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
};
}

View file

@ -2686,6 +2686,8 @@ in {
fordpass = callPackage ../development/python-modules/fordpass { };
forecast-solar = callPackage ../development/python-modules/forecast-solar { };
fortiosapi = callPackage ../development/python-modules/fortiosapi { };
FormEncode = callPackage ../development/python-modules/FormEncode { };