blob: 00a74a3b74808b1c5d0632c76f0e1e9e2895fc82 (
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
48
|
{
lib,
aiohttp,
buildPythonPackage,
fetchFromGitHub,
mashumaro,
pytestCheckHook,
pyyaml,
requests,
setuptools,
}:
buildPythonPackage rec {
pname = "pyvesync";
version = "3.3.3";
pyproject = true;
src = fetchFromGitHub {
owner = "webdjoe";
repo = "pyvesync";
tag = version;
hash = "sha256-T8cDp1C95gubCfgvkEiqHUn4Rw7pFNCPELo3qNwt9vI=";
};
build-system = [ setuptools ];
dependencies = [
aiohttp
mashumaro
]
++ mashumaro.optional-dependencies.orjson;
nativeCheckInputs = [
pytestCheckHook
pyyaml
requests
];
pythonImportsCheck = [ "pyvesync" ];
meta = {
description = "Python library to manage Etekcity Devices and Levoit Air Purifier";
homepage = "https://github.com/webdjoe/pyvesync";
changelog = "https://github.com/webdjoe/pyvesync/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}
|