blob: b05f1b84cc6eac881bf8f9e82be37bb612d7b0a8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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 ];
};
}
|