Skip to content

Commit

Permalink
Merge pull request #109527 from fabaff/hatasmota
Browse files Browse the repository at this point in the history
python3Packages.hatasmota: init at 0.2.5
  • Loading branch information
mweinelt committed Jan 16, 2021
2 parents 13feddd + 51a0f49 commit bf6fb7b
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 1 deletion.
34 changes: 34 additions & 0 deletions pkgs/development/python-modules/hatasmota/default.nix
@@ -0,0 +1,34 @@
{ lib
, attrs
, buildPythonPackage
, fetchFromGitHub
, voluptuous
}:

buildPythonPackage rec {
pname = "hatasmota";
version = "0.2.5";

src = fetchFromGitHub {
owner = "emontnemery";
repo = pname;
rev = version;
sha256 = "1xsqrpd0dprjfaa2yrdy1g9n4xyrw6ifnzkrh3sq5fx0yfmxbzqm";
};

propagatedBuildInputs = [
attrs
voluptuous
];

# Project has no tests
doCheck = false;
pythonImportsCheck = [ "hatasmota" ];

meta = with lib; {
description = "Python module to help parse and construct Tasmota MQTT messages";
homepage = "https://github.com/emontnemery/hatasmota";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}
2 changes: 1 addition & 1 deletion pkgs/servers/home-assistant/component-packages.nix
Expand Up @@ -816,7 +816,7 @@
"tank_utility" = ps: with ps; [ ]; # missing inputs: tank_utility
"tankerkoenig" = ps: with ps; [ ]; # missing inputs: pytankerkoenig
"tapsaff" = ps: with ps; [ ]; # missing inputs: tapsaff
"tasmota" = ps: with ps; [ aiohttp-cors paho-mqtt ]; # missing inputs: hatasmota
"tasmota" = ps: with ps; [ aiohttp-cors hatasmota paho-mqtt ];
"tautulli" = ps: with ps; [ ]; # missing inputs: pytautulli
"tcp" = ps: with ps; [ ];
"ted5000" = ps: with ps; [ xmltodict ];
Expand Down
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Expand Up @@ -2822,6 +2822,8 @@ in {

hass-nabucasa = callPackage ../development/python-modules/hass-nabucasa { };

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

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

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

0 comments on commit bf6fb7b

Please sign in to comment.