blob: 865fd09978a845d5e2792d2e6618b87b0523a0b4 (
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
|
{
lib,
aiohttp,
buildPythonPackage,
fetchFromGitHub,
paho-mqtt,
pycryptodomex,
requests,
setuptools,
}:
buildPythonPackage rec {
pname = "meross-iot";
version = "0.4.10.3";
pyproject = true;
src = fetchFromGitHub {
owner = "albertogeniola";
repo = "MerossIot";
tag = version;
hash = "sha256-VxwOigIyLTeP1P9uyiavsu14zTjuLCZuka+2cLqJDUw=";
};
build-system = [ setuptools ];
dependencies = [
aiohttp
paho-mqtt
pycryptodomex
requests
]
++ aiohttp.optional-dependencies.speedups;
# Test require network access
doCheck = false;
pythonImportsCheck = [ "meross_iot" ];
meta = {
description = "Python library to interact with Meross devices";
homepage = "https://github.com/albertogeniola/MerossIot";
changelog = "https://github.com/albertogeniola/MerossIot/releases/tag/${version}";
license = with lib.licenses; [ mit ];
maintainers = with lib.maintainers; [ fab ];
};
}
|