Skip to content

Commit b40f6ad

Browse files
authored
python3Packages.miraie-ac: init at 1.1.1 (#422479)
2 parents bcd4f87 + 8a16a25 commit b40f6ad

File tree

4 files changed

+89
-0
lines changed

4 files changed

+89
-0
lines changed

maintainers/maintainer-list.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1475,6 +1475,12 @@
14751475
github = "an-empty-string";
14761476
githubId = 681716;
14771477
};
1478+
ananthb = {
1479+
name = "Ananth Bhaskararaman";
1480+
email = "[email protected]";
1481+
github = "ananthb";
1482+
githubId = 3133350;
1483+
};
14781484
anas = {
14791485
email = "[email protected]";
14801486
github = "0x61nas";
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
lib,
3+
buildPythonPackage,
4+
fetchPypi,
5+
6+
# build-system
7+
poetry-core,
8+
9+
# dependencies
10+
aiomqtt,
11+
aiohttp,
12+
certifi,
13+
}:
14+
15+
buildPythonPackage rec {
16+
pname = "miraie-ac";
17+
version = "1.1.1";
18+
pyproject = true;
19+
20+
src = fetchPypi {
21+
inherit version;
22+
pname = "miraie_ac";
23+
hash = "sha256-IiRDPz5IcD3Df+vw4YvR3zc0oThGjb7pBJfD4d98h/g=";
24+
};
25+
26+
build-system = [ poetry-core ];
27+
28+
dependencies = [
29+
aiomqtt
30+
aiohttp
31+
certifi
32+
];
33+
34+
pythonRemoveDeps = [ "asyncio" ];
35+
36+
pythonImportsCheck = [ "miraie_ac" ];
37+
38+
meta = {
39+
homepage = "https://github.com/rkzofficial/miraie-ac";
40+
changelog = "https://github.com/rkzofficial/miraie-ac/releases";
41+
description = "Python library for controlling Panasonic Miraie ACs";
42+
license = lib.licenses.mit;
43+
maintainers = with lib.maintainers; [ ananthb ];
44+
};
45+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
lib,
3+
buildHomeAssistantComponent,
4+
fetchFromGitHub,
5+
miraie-ac,
6+
aiomqtt,
7+
nix-update-script,
8+
}:
9+
10+
buildHomeAssistantComponent rec {
11+
owner = "rkzofficial";
12+
domain = "miraie";
13+
version = "1.1.6";
14+
15+
src = fetchFromGitHub {
16+
owner = "rkzofficial";
17+
repo = "ha-miraie-ac";
18+
tag = "v${version}";
19+
hash = "sha256-5VpLfTKOLdx8P693jaW4o79CH2NKkgkgl7ai+I6JRQs=";
20+
};
21+
22+
dependencies = [
23+
miraie-ac
24+
aiomqtt
25+
];
26+
27+
passthru.updateScript = nix-update-script { };
28+
29+
meta = {
30+
changelog = "https://github.com/rkzofficial/ha-miraie-ac/releases/tag/v${version}";
31+
description = "Home Assistant component for Miraie ACs";
32+
homepage = "https://github.com/rkzofficial/ha-miraie-ac";
33+
maintainers = with lib.maintainers; [ ananthb ];
34+
license = lib.licenses.asl20;
35+
};
36+
}

pkgs/top-level/python-packages.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9294,6 +9294,8 @@ self: super: with self; {
92949294

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

9297+
miraie-ac = callPackage ../development/python-modules/miraie-ac { };
9298+
92979299
mirakuru = callPackage ../development/python-modules/mirakuru { };
92989300

92999301
misaka = callPackage ../development/python-modules/misaka { };

0 commit comments

Comments
 (0)