mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-01 17:53:14 +00:00
Merge pull request #220071 from fabaff/energyzero
python310Packages.energyzero: init at 0.4.0
This commit is contained in:
commit
9f0034b1dd
61
pkgs/development/python-modules/energyzero/default.nix
Normal file
61
pkgs/development/python-modules/energyzero/default.nix
Normal file
@ -0,0 +1,61 @@
|
||||
{ lib
|
||||
, aiohttp
|
||||
, aresponses
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, poetry-core
|
||||
, pytest-asyncio
|
||||
, pytest-freezer
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, yarl
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "energyzero";
|
||||
version = "0.4.0";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.9";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "klaasnicolaas";
|
||||
repo = "python-energyzero";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-QSxr4hfNlpIbLpeQ8tcdRP3dARB/OxTP9cVgf+P63Lw=";
|
||||
};
|
||||
|
||||
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 = [
|
||||
"energyzero"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
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 = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
@ -935,7 +935,8 @@
|
||||
sqlalchemy
|
||||
];
|
||||
"energyzero" = ps: with ps; [
|
||||
]; # missing inputs: energyzero
|
||||
energyzero
|
||||
];
|
||||
"enigma2" = ps: with ps; [
|
||||
openwebifpy
|
||||
];
|
||||
@ -4477,6 +4478,7 @@
|
||||
"emulated_kasa"
|
||||
"emulated_roku"
|
||||
"energy"
|
||||
"energyzero"
|
||||
"enocean"
|
||||
"enphase_envoy"
|
||||
"environment_canada"
|
||||
|
@ -3069,6 +3069,8 @@ self: super: with self; {
|
||||
|
||||
energyflow = callPackage ../development/python-modules/energyflow { };
|
||||
|
||||
energyzero = callPackage ../development/python-modules/energyzero { };
|
||||
|
||||
enhancements = callPackage ../development/python-modules/enhancements { };
|
||||
|
||||
enlighten = callPackage ../development/python-modules/enlighten { };
|
||||
|
Loading…
Reference in New Issue
Block a user