Files
nixpkgs/pkgs/development/python-modules/msmart-ng/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

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 = "2025.9.2";
pyproject = true;
src = fetchFromGitHub {
owner = "mill1000";
repo = "midea-msmart";
tag = version;
hash = "sha256-+A3Mk/S5FZLe3y5J3olZ+kBlIlkLXlX92IdrvudFriE=";
};
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
];
};
}