python312Packages.forecast-solar: 3.1.0 -> 4.0.0 (#357438)
This commit is contained in:
@@ -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}";
|
||||
|
||||
Reference in New Issue
Block a user