diff --git a/pkgs/development/python-modules/intellifire4py/default.nix b/pkgs/development/python-modules/intellifire4py/default.nix new file mode 100644 index 000000000000..82122d13ffdc --- /dev/null +++ b/pkgs/development/python-modules/intellifire4py/default.nix @@ -0,0 +1,45 @@ +{ lib +, aiohttp +, buildPythonPackage +, fetchFromGitHub +, pydantic +, pytestCheckHook +, pythonOlder +, requests +}: + +buildPythonPackage rec { + pname = "intellifire4py"; + version = "0.5"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "jeeftor"; + repo = pname; + rev = version; + hash = "sha256-ESNFTlzwxv0SZA/vVU3aIjkt5nCX3D4VbwIRNSzMIK4="; + }; + + propagatedBuildInputs = [ + aiohttp + pydantic + requests + ]; + + checkInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "intellifire4py" + ]; + + meta = with lib; { + description = "Module to read Intellifire fireplace status data"; + homepage = "https://github.com/jeeftor/intellifire4py"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index 7c99c9bf10c6..12095d5736de 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -414,7 +414,7 @@ "input_text" = ps: with ps; [ ]; "insteon" = ps: with ps; [ pyinsteon ]; "integration" = ps: with ps; [ ]; - "intellifire" = ps: with ps; [ ]; # missing inputs: intellifire4py + "intellifire" = ps: with ps; [ intellifire4py ]; "intent" = ps: with ps; [ aiohttp-cors ]; "intent_script" = ps: with ps; [ ]; "intesishome" = ps: with ps; [ pyintesishome ]; @@ -1277,6 +1277,7 @@ "input_text" "insteon" "integration" + "intellifire" "intent" "intent_script" "ios" diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 57b9284e1d49..0cb643fcf386 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3999,6 +3999,8 @@ in { intelhex = callPackage ../development/python-modules/intelhex { }; + intellifire4py = callPackage ../development/python-modules/intellifire4py { }; + intensity-normalization = callPackage ../development/python-modules/intensity-normalization { }; internetarchive = callPackage ../development/python-modules/internetarchive { };