python313Packages.easyenergy: 2.1.2 -> 2.2.0

Changelog: https://github.com/klaasnicolaas/python-easyenergy/releases/tag/v2.2.0

Changed files
+9 -6
pkgs
development
python-modules
easyenergy
+9 -6
pkgs/development/python-modules/easyenergy/default.nix
···
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";
···
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 ];
···
nativeCheckInputs = [
aresponses
pytest-asyncio
+
pytest-cov-stub
pytest-freezer
pytestCheckHook
+
syrupy
];
pythonImportsCheck = [ "easyenergy" ];
···
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 ];
};
}