Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364{ lib, aiohttp, aresponses, buildPythonPackage, fetchFromGitHub, pyprojectVersionPatchHook, pytest-asyncio, pytest-cov-stub, pytest-freezer, pytestCheckHook, syrupy, uv-build, yarl,}:
buildPythonPackage rec { pname = "energyzero"; version = "5.1.1"; pyproject = true;
src = fetchFromGitHub { owner = "klaasnicolaas"; repo = "python-energyzero"; tag = "v${version}"; hash = "sha256-UNY2JZd9ck7SfdGudW7Ujg0MjO/l9OgohzH2yfOeIW8="; };
postPatch = '' substituteInPlace pyproject.toml \ --replace-fail 'uv_build>=0.13,<0.14' uv_build '';
nativeBuildInputs = [ pyprojectVersionPatchHook ];
build-system = [ uv-build ];
dependencies = [ aiohttp yarl ];
nativeCheckInputs = [ aresponses pytest-asyncio pytest-cov-stub pytest-freezer pytestCheckHook syrupy ];
pythonImportsCheck = [ "energyzero" ];
meta = { description = "Module for getting the dynamic prices from EnergyZero"; homepage = "https://github.com/klaasnicolaas/python-energyzero"; changelog = "https://github.com/klaasnicolaas/python-energyzero/releases/tag/v${version}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; };}