Skip to content

Commit

Permalink
python312Packages.forecast-solar: 3.1.0 -> 4.0.0 (#357438)
Browse files Browse the repository at this point in the history
  • Loading branch information
dotlambda authored Nov 23, 2024
2 parents a112c12 + 229964f commit d2c8c3a
Showing 1 changed file with 32 additions and 5 deletions.
37 changes: 32 additions & 5 deletions pkgs/development/python-modules/forecast-solar/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -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}";
Expand Down

0 comments on commit d2c8c3a

Please sign in to comment.