Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pythonPackages.aioharmony: init at 0.2.1 #84903

Merged
merged 1 commit into from
Apr 10, 2020
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
28 changes: 28 additions & 0 deletions pkgs/development/python-modules/aioharmony/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{ lib, buildPythonPackage, fetchPypi, isPy3k, slixmpp, async-timeout, aiohttp }:

buildPythonPackage rec {
pname = "aioharmony";
version = "0.2.1";

src = fetchPypi {
inherit pname version;
sha256 = "8c8f6e3b776e4e7eba5a1d2ae739aac6a1dd558a7f15951c34ffe0ee28f7f538";
};

disabled = !isPy3k;

#aioharmony does not seem to include tests
doCheck = false;

pythonImportsCheck = [ "aioharmony.harmonyapi" "aioharmony.harmonyclient" ];

propagatedBuildInputs = [ slixmpp async-timeout aiohttp ];

meta = with lib; {
homepage = "https://github.com/ehendrix23/aioharmony";
description =
"Asyncio Python library for connecting to and controlling the Logitech Harmony";
license = licenses.asl20;
maintainers = with maintainers; [ oro ];
};
}
2 changes: 1 addition & 1 deletion pkgs/servers/home-assistant/component-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@
"habitica" = ps: with ps; [ ]; # missing inputs: habitipy
"hangouts" = ps: with ps; [ ]; # missing inputs: hangups
"harman_kardon_avr" = ps: with ps; [ ]; # missing inputs: hkavr
"harmony" = ps: with ps; [ ]; # missing inputs: aioharmony
"harmony" = ps: with ps; [ aioharmony];
"hassio" = ps: with ps; [ aiohttp-cors];
"haveibeenpwned" = ps: with ps; [ ];
"hddtemp" = ps: with ps; [ ];
Expand Down
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1619,6 +1619,8 @@ in {

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

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

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

aiohttp-cors = callPackage ../development/python-modules/aiohttp-cors { };
Expand Down