Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1481,6 +1481,12 @@
github = "an-empty-string";
githubId = 681716;
};
ananthb = {
name = "Ananth Bhaskararaman";
email = "nixos-maint@devhuman.net";
github = "ananthb";
githubId = 3133350;
};
anas = {
email = "anas.elgarhy.dev@gmail.com";
github = "0x61nas";
Expand Down
45 changes: 45 additions & 0 deletions pkgs/development/python-modules/miraie-ac/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
lib,
buildPythonPackage,
fetchPypi,

# build-system
poetry-core,

# dependencies
aiomqtt,
aiohttp,
certifi,
}:

buildPythonPackage rec {
pname = "miraie-ac";
version = "1.1.1";
pyproject = true;

src = fetchPypi {
inherit version;
pname = "miraie_ac";
hash = "sha256-IiRDPz5IcD3Df+vw4YvR3zc0oThGjb7pBJfD4d98h/g=";
};

build-system = [ poetry-core ];

dependencies = [
aiomqtt
aiohttp
certifi
];

pythonRemoveDeps = [ "asyncio" ];

pythonImportsCheck = [ "miraie_ac" ];

meta = {
homepage = "https://github.com/rkzofficial/miraie-ac";
changelog = "https://github.com/rkzofficial/miraie-ac/releases";
description = "Python library for controlling Panasonic Miraie ACs";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ananthb ];
};
}
36 changes: 36 additions & 0 deletions pkgs/servers/home-assistant/custom-components/miraie/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
lib,
buildHomeAssistantComponent,
fetchFromGitHub,
miraie-ac,
aiomqtt,
nix-update-script,
}:

buildHomeAssistantComponent rec {
owner = "rkzofficial";
domain = "miraie";
version = "1.1.6";

src = fetchFromGitHub {
owner = "rkzofficial";
repo = "ha-miraie-ac";
tag = "v${version}";
hash = "sha256-5VpLfTKOLdx8P693jaW4o79CH2NKkgkgl7ai+I6JRQs=";
};

dependencies = [
miraie-ac
aiomqtt
];

passthru.updateScript = nix-update-script { };

meta = {
changelog = "https://github.com/rkzofficial/ha-miraie-ac/releases/tag/v${version}";
description = "Home Assistant component for Miraie ACs";
homepage = "https://github.com/rkzofficial/ha-miraie-ac";
maintainers = with lib.maintainers; [ ananthb ];
license = lib.licenses.asl20;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9227,6 +9227,8 @@ self: super: with self; {

mir-eval = callPackage ../development/python-modules/mir-eval { };

miraie-ac = callPackage ../development/python-modules/miraie-ac { };

mirakuru = callPackage ../development/python-modules/mirakuru { };

misaka = callPackage ../development/python-modules/misaka { };
Expand Down
Loading