python313Packages.easyenergy: 2.1.2 -> 2.2.0 (#405833)

This commit is contained in:
OTABI Tomoya
2025-05-10 19:59:20 +09:00
committed by GitHub
@@ -6,15 +6,17 @@
fetchFromGitHub,
poetry-core,
pytest-asyncio,
pytest-cov-stub,
pytest-freezer,
pytestCheckHook,
pythonOlder,
syrupy,
yarl,
}:
buildPythonPackage rec {
pname = "easyenergy";
version = "2.1.2";
version = "2.2.0";
pyproject = true;
disabled = pythonOlder "3.11";
@@ -23,13 +25,12 @@ buildPythonPackage rec {
owner = "klaasnicolaas";
repo = "python-easyenergy";
tag = "v${version}";
hash = "sha256-tWKfcGznxck8VLK3YshOIbPet2CEbUZbT8JzgaAhAso=";
hash = "sha256-AFEygSSHr7YJK4Yx4dvBVGR3wBswAeUNrC/7NndzfBg=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace '"0.0.0"' '"${version}"' \
--replace 'addopts = "--cov"' ""
--replace '"0.0.0"' '"${version}"'
'';
nativeBuildInputs = [ poetry-core ];
@@ -42,8 +43,10 @@ buildPythonPackage rec {
nativeCheckInputs = [
aresponses
pytest-asyncio
pytest-cov-stub
pytest-freezer
pytestCheckHook
syrupy
];
pythonImportsCheck = [ "easyenergy" ];
@@ -66,8 +69,8 @@ buildPythonPackage rec {
meta = with lib; {
description = "Module for getting energy/gas prices from easyEnergy";
homepage = "https://github.com/klaasnicolaas/python-easyenergy";
changelog = "https://github.com/klaasnicolaas/python-easyenergy/releases/tag/v${version}";
license = with licenses; [ mit ];
changelog = "https://github.com/klaasnicolaas/python-easyenergy/releases/tag/${src.tag}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}