1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 aiofiles,
7 aiohttp,
8 colorlog,
9 commonregex,
10 defusedxml,
11 deprecated,
12 ifaddr,
13 pycryptodome,
14 platformdirs,
15}:
16
17buildPythonPackage rec {
18 pname = "midea-local";
19 version = "6.4.0";
20 pyproject = true;
21
22 src = fetchFromGitHub {
23 owner = "midea-lan";
24 repo = "midea-local";
25 tag = "v${version}";
26 hash = "sha256-jeQ5PXkKxVz041VJ58lJVpqIoj1Y054VADFtnutddg4=";
27 };
28
29 build-system = [ setuptools ];
30
31 dependencies = [
32 aiofiles
33 aiohttp
34 colorlog
35 commonregex
36 defusedxml
37 deprecated
38 ifaddr
39 pycryptodome
40 platformdirs
41 ];
42
43 meta = with lib; {
44 description = "Control your Midea M-Smart appliances via local area network";
45 homepage = "https://github.com/midea-lan/midea-local";
46 changelog = "https://github.com/midea-lan/midea-local/releases/tag/${src.tag}";
47 maintainers = with maintainers; [ k900 ];
48 license = licenses.mit;
49 };
50}