From 229964fc095c416054d0efd86d8678feb9adb239 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Tue, 19 Nov 2024 16:17:07 -0800 Subject: [PATCH] python312Packages.forecast-solar: 3.1.0 -> 4.0.0 Diff: https://github.com/home-assistant-libs/forecast_solar/compare/refs/tags/v3.1.0...v4.0.0 Changelog: https://github.com/home-assistant-libs/forecast_solar/releases/tag/v4.0.0 --- .../python-modules/forecast-solar/default.nix | 37 ++++++++++++++++--- 1 file changed, 32 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/forecast-solar/default.nix b/pkgs/development/python-modules/forecast-solar/default.nix index 8a955b514440a..c53494a5aa2f4 100644 --- a/pkgs/development/python-modules/forecast-solar/default.nix +++ b/pkgs/development/python-modules/forecast-solar/default.nix @@ -2,16 +2,22 @@ lib, buildPythonPackage, fetchFromGitHub, - setuptools, pythonOlder, aiodns, aiohttp, + aresponses, + poetry-core, + pytest-asyncio, + pytest-cov-stub, + pytest-freezer, pytestCheckHook, + syrupy, + yarl, }: buildPythonPackage rec { pname = "forecast-solar"; - version = "3.1.0"; + version = "4.0.0"; pyproject = true; disabled = pythonOlder "3.11"; @@ -20,21 +26,42 @@ buildPythonPackage rec { owner = "home-assistant-libs"; repo = "forecast_solar"; rev = "refs/tags/v${version}"; - hash = "sha256-iol0XtfPZI95o/uEyBcXgeQjcfl2kI+4mugtywa6BXI="; + hash = "sha256-lWP4ZG195IuP8E9n53EkvdIs3aVTYeEc171Yh3EngOI="; }; - build-system = [ setuptools ]; + build-system = [ poetry-core ]; env.PACKAGE_VERSION = version; dependencies = [ aiodns aiohttp + yarl ]; pythonImportsCheck = [ "forecast_solar" ]; - nativeCheckInputs = [ pytestCheckHook ]; + 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 = with lib; { changelog = "https://github.com/home-assistant-libs/forecast_solar/releases/tag/v${version}";