mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-12 11:38:37 +00:00
Diff: https://github.com/petschni/greenplanet-energy-api/compare/v0.1.8...v0.1.10 Changelog: https://github.com/petschni/greenplanet-energy-api/releases/tag/v0.1.10
53 lines
1.1 KiB
Nix
53 lines
1.1 KiB
Nix
{
|
|
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 ];
|
|
};
|
|
})
|