blob: c2a2a8535f015a47362f6f4ef476c240cf9cd890 (
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
49
50
51
52
53
54
55
56
57
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
setuptools-scm,
# dependencies
httpx,
pycryptodome,
# tests
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "msmart-ng";
version = "2025.12.0";
pyproject = true;
src = fetchFromGitHub {
owner = "mill1000";
repo = "midea-msmart";
tag = version;
hash = "sha256-zRTs6nRgI5ixbHzDXfAjJ2JW/9y+b7vzAyUGk120xj4=";
};
build-system = [
setuptools
setuptools-scm
];
dependencies = [
httpx
pycryptodome
];
nativeCheckInputs = [ pytestCheckHook ];
env.CI = true;
pythonImportsCheck = [ "msmart" ];
meta = {
changelog = "https://github.com/mill1000/midea-msmart/releases/tag/${src.tag}";
description = "Python library for local control of Midea (and associated brands) smart air conditioners";
homepage = "https://github.com/mill1000/midea-msmart";
license = lib.licenses.mit;
mainProgram = "msmart-ng";
maintainers = with lib.maintainers; [
hexa
emilylange
];
};
}
|