diff --git a/pkgs/development/python-modules/aioeagle/default.nix b/pkgs/development/python-modules/aioeagle/default.nix new file mode 100644 index 000000000000..8862758880c3 --- /dev/null +++ b/pkgs/development/python-modules/aioeagle/default.nix @@ -0,0 +1,39 @@ +{ lib +, aiohttp +, buildPythonPackage +, fetchFromGitHub +, pythonOlder +, xmltodict +}: + +buildPythonPackage rec { + pname = "aioeagle"; + version = "1.1.0"; + + disabled = pythonOlder "3.8"; + + src = fetchFromGitHub { + owner = "home-assistant-libs"; + repo = pname; + rev = version; + sha256 = "117nb50cxwrixif2r6fxmr9v0jxkcamm816v48hbhyc660w6xvk4"; + }; + + propagatedBuildInputs = [ + aiohttp + xmltodict + ]; + + # Project has no tests + doCheck = false; + + pythonImportsCheck = [ "aioeagle" ]; + + meta = with lib; { + description = "Python library to control EAGLE-200"; + homepage = "https://github.com/home-assistant-libs/aioeagle"; + changelog = "https://github.com/home-assistant-libs/aioshelly/releases/tag/${version}"; + license = with licenses; [ asl20 ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 70c1760da3cf..40d6e4832760 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -265,6 +265,8 @@ in { aioeafm = callPackage ../development/python-modules/aioeafm { }; + aioeagle = callPackage ../development/python-modules/aioeagle { }; + aioemonitor = callPackage ../development/python-modules/aioemonitor { }; aioesphomeapi = callPackage ../development/python-modules/aioesphomeapi { };