Files
nixpkgs/pkgs/development/python-modules/midea-beautiful-air/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

54 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
cryptography,
requests,
pytestCheckHook,
pytest-socket,
requests-mock,
}:
buildPythonPackage rec {
pname = "midea-beautiful-air";
version = "0.10.5";
pyproject = true;
src = fetchFromGitHub {
owner = "nbogojevic";
repo = "midea-beautiful-air";
tag = "v${version}";
hash = "sha256-786Q085bv8Zsm0c55I4XalRhEfwElRTJds5qnb0cWhk=";
};
build-system = [ setuptools ];
dependencies = [
cryptography
requests
];
nativeCheckInputs = [
pytestCheckHook
pytest-socket
requests-mock
];
disabledTestPaths = [
# tests optional dependencies + network
"tests/test_cli.py"
];
pythonImportsCheck = [ "midea_beautiful" ];
meta = {
description = "Python client for accessing Midea air conditioners and dehumidifiers (Midea, Comfee, Inventor EVO) via local network";
homepage = "https://github.com/nbogojevic/midea-beautiful-air";
changelog = "https://github.com/nbogojevic/midea-beautiful-air/releases/tag/v${version}";
maintainers = with lib.maintainers; [ k900 ];
mainProgram = "midea-beautiful-air-cli";
license = lib.licenses.mit;
};
}