mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-25 17:55:21 +00:00
Diff: https://github.com/nbogojevic/midea-beautiful-air/compare/v0.10.5...v0.10.7 Changelog: https://github.com/nbogojevic/midea-beautiful-air/releases/tag/v0.10.7
54 lines
1.2 KiB
Nix
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.7";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nbogojevic";
|
|
repo = "midea-beautiful-air";
|
|
tag = "v${version}";
|
|
hash = "sha256-9smuLzgJPO/GoYP8NqfY9Ky9q2E3/cjEQLtWHIx7BxI=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|