Files
nixpkgs/pkgs/development/python-modules/midea-beautiful-air/default.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02: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 = with lib; {
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 maintainers; [ k900 ];
mainProgram = "midea-beautiful-air-cli";
license = licenses.mit;
};
}