Merge pull request #327209 from dotlambda/python3Packages.aiosolaredge
home-assistant: support solaredge component
This commit is contained in:
commit
11a4bfd79a
49
pkgs/development/python-modules/aiosolaredge/default.nix
Normal file
49
pkgs/development/python-modules/aiosolaredge/default.nix
Normal file
@ -0,0 +1,49 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
poetry-core,
|
||||
aiohttp,
|
||||
yarl,
|
||||
pytest-asyncio,
|
||||
pytestCheckHook,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aiosolaredge";
|
||||
version = "0.2.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "bdraco";
|
||||
repo = "aiosolaredge";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-1C74U5HWDTJum1XES21t1uIJwm0YW3l041mwvqY/dA4=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
sed -i "/^addopts/d" pyproject.toml
|
||||
'';
|
||||
|
||||
build-system = [ poetry-core ];
|
||||
|
||||
dependencies = [
|
||||
aiohttp
|
||||
yarl
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "aiosolaredge" ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytest-asyncio
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
meta = {
|
||||
changelog = "https://github.com/bdraco/aiosolaredge/blob/${src.rev}/CHANGELOG.md";
|
||||
description = "Asyncio SolarEdge API client";
|
||||
homepage = "https://github.com/bdraco/aiosolaredge";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ dotlambda ];
|
||||
};
|
||||
}
|
@ -4181,8 +4181,9 @@
|
||||
zeroconf
|
||||
];
|
||||
"solaredge" = ps: with ps; [
|
||||
aiosolaredge
|
||||
stringcase
|
||||
]; # missing inputs: aiosolaredge
|
||||
];
|
||||
"solaredge_local" = ps: with ps; [
|
||||
]; # missing inputs: solaredge-local
|
||||
"solarlog" = ps: with ps; [
|
||||
@ -5876,6 +5877,7 @@
|
||||
"snips"
|
||||
"snmp"
|
||||
"snooz"
|
||||
"solaredge"
|
||||
"solax"
|
||||
"soma"
|
||||
"somfy_mylink"
|
||||
|
@ -421,6 +421,8 @@ self: super: with self; {
|
||||
|
||||
aiosmtplib = callPackage ../development/python-modules/aiosmtplib { };
|
||||
|
||||
aiosolaredge = callPackage ../development/python-modules/aiosolaredge { };
|
||||
|
||||
aiosomecomfort = callPackage ../development/python-modules/aiosomecomfort { };
|
||||
|
||||
aiosqlite = callPackage ../development/python-modules/aiosqlite { };
|
||||
|
Loading…
Reference in New Issue
Block a user