Files
nixpkgs/pkgs/development/python-modules/forecast-solar/default.nix
T
2026-02-27 13:53:06 +00:00

71 lines
1.4 KiB
Nix

{
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 ];
};
}