blob: 199a8938d9a1e816e3da107af83dd3be28d0c320 (
plain)
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
httpx,
poetry-core,
pytest-asyncio,
pytest-httpx,
pytestCheckHook,
yarl,
}:
buildPythonPackage rec {
pname = "elmax";
version = "0.1.5";
pyproject = true;
src = fetchFromGitHub {
owner = "home-assistant-ecosystem";
repo = "python-elmax";
rev = version;
hash = "sha256-EcYEpYv+EwwEfW8Sy7aQjFAPpmsA6qVbmlwrPdxdnEw=";
};
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [
httpx
yarl
];
nativeCheckInputs = [
pytest-asyncio
pytest-httpx
pytestCheckHook
];
pythonImportsCheck = [ "elmax" ];
meta = {
description = "Python API client for the Elmax Cloud services";
mainProgram = "poetry-template";
homepage = "https://github.com/home-assistant-ecosystem/python-elmax";
license = with lib.licenses; [ asl20 ];
maintainers = with lib.maintainers; [ fab ];
};
}
|