python312Packages.aiosolaredge: init at 0.2.0
This commit is contained in:
parent
b0654d9373
commit
17ff5dcccd
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 ];
|
||||
};
|
||||
}
|
@ -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