Something went wrong. Try again.
lol
Something went wrong. Try again.
1.5 kB · 70 lines
Nix
at master
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071{ lib, buildPythonPackage, fetchFromGitHub, aiodns, aiohttp, aresponses, poetry-core, pytest-asyncio, pytest-cov-stub, pytest-freezer, pytestCheckHook, syrupy, yarl,}:
buildPythonPackage rec { pname = "forecast-solar"; version = "5.0.0"; pyproject = true;
src = fetchFromGitHub { owner = "home-assistant-libs"; repo = "forecast_solar"; tag = "v${version}"; hash = "sha256-gFa1jq4Dq6fWqL/3eY+OGcJU+T+R6TZs8CX1ynnW+pU="; };
build-system = [ poetry-core ];
env.PACKAGE_VERSION = version;
dependencies = [ aiodns aiohttp yarl ];
pythonImportsCheck = [ "forecast_solar" ];
nativeCheckInputs = [ aresponses pytest-asyncio pytest-cov-stub pytest-freezer pytestCheckHook syrupy ];
disabledTests = [ # "Error while resolving Forecast.Solar API address" "test_api_key_validation" "test_estimated_forecast" "test_internal_session" "test_json_request" "test_plane_validation" "test_status_400" "test_status_401" "test_status_422" "test_status_429" ];
meta = { changelog = "https://github.com/home-assistant-libs/forecast_solar/releases/tag/v${version}"; description = "Asynchronous Python client for getting forecast solar information"; homepage = "https://github.com/home-assistant-libs/forecast_solar"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ dotlambda ]; };}