Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657{ lib, buildPythonPackage, fetchFromGitHub,
# build-system setuptools, setuptools-scm,
# dependencies httpx, pycryptodome,
# tests pytestCheckHook,}:
buildPythonPackage rec { pname = "msmart-ng"; version = "2026.9.0"; pyproject = true;
src = fetchFromGitHub { owner = "mill1000"; repo = "midea-msmart"; tag = version; hash = "sha256-pTL7Kn+m5HP1xJ2cvxWaj8700c7bGPonS4nku+SwsRI="; };
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 ]; };}