Something went wrong. Try again.
lol
Something went wrong. Try again.
1.2 kB · 52 lines
Nix
at master
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253{ lib, buildPythonPackage, fetchFromGitHub, setuptools, aiohttp, pytest-asyncio, pytest-cov-stub, aioresponses, pytestCheckHook,}:
buildPythonPackage (finalAttrs: { pname = "greenplanet-energy-api"; version = "0.1.10"; pyproject = true;
src = fetchFromGitHub { owner = "petschni"; repo = "greenplanet-energy-api"; tag = "v${finalAttrs.version}"; hash = "sha256-2Maz/deWoHO92ed+k7EqJg6KhdARHl46IN/d/6E3W8E="; };
build-system = [ setuptools ];
dependencies = [ aiohttp ];
nativeCheckInputs = [ pytest-asyncio pytest-cov-stub aioresponses pytestCheckHook ];
disabledTests = [ # connects to mein.green-planet-energy.de "test_get_electricity_prices_timeout" ];
pythonImportsCheck = [ "greenplanet_energy_api" ];
meta = { description = "Async Python library for querying the Green Planet Energy API"; homepage = "https://github.com/petschni/greenplanet-energy-api"; changelog = "https://github.com/petschni/greenplanet-energy-api/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.mit; maintainers = [ lib.maintainers.jamiemagee ]; };})