mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 19:55:41 +03:00
python312Packages.msmart-ng: init at 2024.9.0, home-assistant-custom-components.midea_ac: init at 2024.9.2 (#328419)
This commit is contained in:
commit
fc8030711f
4 changed files with 95 additions and 0 deletions
60
pkgs/development/python-modules/msmart-ng/default.nix
Normal file
60
pkgs/development/python-modules/msmart-ng/default.nix
Normal file
|
@ -0,0 +1,60 @@
|
|||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
|
||||
# build-system
|
||||
setuptools,
|
||||
setuptools-scm,
|
||||
|
||||
# dependencies
|
||||
httpx,
|
||||
pycryptodome,
|
||||
|
||||
# tests
|
||||
pytestCheckHook,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "msmart-ng";
|
||||
version = "2024.9.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mill1000";
|
||||
repo = "midea-msmart";
|
||||
rev = version;
|
||||
hash = "sha256-djo+sINurnrt0GO8045bgNstjh+yl+CE2GJ1vWivAqY=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
setuptools
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
httpx
|
||||
pycryptodome
|
||||
];
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
disabledTestPaths = [
|
||||
# network access
|
||||
"msmart/tests/test_cloud.py"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "msmart" ];
|
||||
|
||||
meta = with lib; {
|
||||
changelog = "https://github.com/mill1000/midea-msmart/releases/tag/${version}";
|
||||
description = "Python library for local control of Midea (and associated brands) smart air conditioners";
|
||||
homepage = "https://github.com/mill1000/midea-msmart";
|
||||
license = licenses.mit;
|
||||
mainProgram = "msmart-ng";
|
||||
maintainers = with maintainers; [
|
||||
hexa
|
||||
emilylange
|
||||
];
|
||||
};
|
||||
}
|
|
@ -38,6 +38,8 @@
|
|||
|
||||
mass = callPackage ./mass { };
|
||||
|
||||
midea_ac = callPackage ./midea_ac { };
|
||||
|
||||
midea_ac_lan = callPackage ./midea_ac_lan {};
|
||||
|
||||
midea-air-appliances-lan = callPackage ./midea-air-appliances-lan {};
|
||||
|
|
|
@ -0,0 +1,31 @@
|
|||
{
|
||||
lib,
|
||||
buildHomeAssistantComponent,
|
||||
fetchFromGitHub,
|
||||
msmart-ng,
|
||||
}:
|
||||
|
||||
buildHomeAssistantComponent rec {
|
||||
owner = "mill1000";
|
||||
domain = "midea_ac";
|
||||
version = "2024.9.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mill1000";
|
||||
repo = "midea-ac-py";
|
||||
rev = version;
|
||||
hash = "sha256-PVR3yuyWMilmyOS341pS73c9ocOrFfJ9dwiKEYqCtM4=";
|
||||
};
|
||||
|
||||
dependencies = [ msmart-ng ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Home Assistant custom integration to control Midea (and associated brands) air conditioners via LAN";
|
||||
homepage = "https://github.com/mill1000/midea-ac-py";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [
|
||||
hexa
|
||||
emilylange
|
||||
];
|
||||
};
|
||||
}
|
|
@ -8165,6 +8165,8 @@ self: super: with self; {
|
|||
|
||||
msldap = callPackage ../development/python-modules/msldap { };
|
||||
|
||||
msmart-ng = callPackage ../development/python-modules/msmart-ng { };
|
||||
|
||||
msoffcrypto-tool = callPackage ../development/python-modules/msoffcrypto-tool { };
|
||||
|
||||
msprime = callPackage ../development/python-modules/msprime { };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue