mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-14 09:13:56 +00:00
51 lines
967 B
Nix
51 lines
967 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
aiofiles,
|
|
aiohttp,
|
|
colorlog,
|
|
commonregex,
|
|
defusedxml,
|
|
deprecated,
|
|
ifaddr,
|
|
pycryptodome,
|
|
platformdirs,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "midea-local";
|
|
version = "6.6.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "midea-lan";
|
|
repo = "midea-local";
|
|
tag = "v${version}";
|
|
hash = "sha256-c66SvwyJZpTVA4bOgiOtrO3wHfK0rMpU2Uolu0Zpa6w=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
aiofiles
|
|
aiohttp
|
|
colorlog
|
|
commonregex
|
|
defusedxml
|
|
deprecated
|
|
ifaddr
|
|
pycryptodome
|
|
platformdirs
|
|
];
|
|
|
|
meta = {
|
|
description = "Control your Midea M-Smart appliances via local area network";
|
|
homepage = "https://github.com/midea-lan/midea-local";
|
|
changelog = "https://github.com/midea-lan/midea-local/releases/tag/${src.tag}";
|
|
maintainers = with lib.maintainers; [ k900 ];
|
|
license = lib.licenses.mit;
|
|
};
|
|
}
|