Merge pull request #220063 from fabaff/easyenergy

python310Packages.easyenergy: init at 0.2.0
This commit is contained in:
Martin Weinelt 2023-03-07 22:28:30 +00:00 committed by GitHub
commit 1c8c446310
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 66 additions and 1 deletions

View file

@ -0,0 +1,61 @@
{ lib
, aiohttp
, aresponses
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pytest-asyncio
, pytest-freezer
, pytestCheckHook
, pythonOlder
, yarl
}:
buildPythonPackage rec {
pname = "easyenergy";
version = "0.2.0";
format = "pyproject";
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "klaasnicolaas";
repo = "python-easyenergy";
rev = "refs/tags/v${version}";
hash = "sha256-EhpZKwoayT53lhyuM/DlyLQ/1OSGuiAaiBdjM0UTZ8E=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace '"0.0.0"' '"${version}"' \
--replace 'addopts = "--cov"' ""
'';
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
aiohttp
yarl
];
nativeCheckInputs = [
aresponses
pytest-asyncio
pytest-freezer
pytestCheckHook
];
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 ];
maintainers = with maintainers; [ fab ];
};
}

View file

@ -843,7 +843,8 @@
aioeafm
];
"easyenergy" = ps: with ps; [
]; # missing inputs: easyenergy
easyenergy
];
"ebox" = ps: with ps; [
]; # missing inputs: pyebox
"ebusd" = ps: with ps; [
@ -4462,6 +4463,7 @@
"dunehd"
"dynalite"
"eafm"
"easyenergy"
"ecobee"
"econet"
"ecowitt"

View file

@ -2952,6 +2952,8 @@ self: super: with self; {
easydict = callPackage ../development/python-modules/easydict { };
easyenergy = callPackage ../development/python-modules/easyenergy { };
easygui = callPackage ../development/python-modules/easygui { };
easyocr = callPackage ../development/python-modules/easyocr { };