mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-14 09:13:56 +00:00
https://github.com/mill1000/midea-msmart/releases/tag/2026.3.0 https://github.com/mill1000/midea-msmart/releases/tag/2026.4.0 https://github.com/mill1000/midea-msmart/releases/tag/2026.4.1
58 lines
1.0 KiB
Nix
58 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
|
|
# build-system
|
|
setuptools,
|
|
setuptools-scm,
|
|
|
|
# dependencies
|
|
httpx,
|
|
pycryptodome,
|
|
|
|
# tests
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "msmart-ng";
|
|
version = "2026.4.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mill1000";
|
|
repo = "midea-msmart";
|
|
tag = version;
|
|
hash = "sha256-kWKdNu5IxBly+4SMIFYF1V3s5stpTbYvvcXpVtG51vM=";
|
|
};
|
|
|
|
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
|
|
];
|
|
};
|
|
}
|