diff --git a/pkgs/development/python-modules/arris-tg2492lg/default.nix b/pkgs/development/python-modules/arris-tg2492lg/default.nix new file mode 100644 index 000000000000..9a883b2f68ee --- /dev/null +++ b/pkgs/development/python-modules/arris-tg2492lg/default.nix @@ -0,0 +1,43 @@ +{ lib +, aiohttp +, buildPythonPackage +, fetchFromGitHub +, pytest-aiohttp +, pytestCheckHook +, pythonOlder +}: + +buildPythonPackage rec { + pname = "arris-tg2492lg"; + version = "2.1.0"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "vanbalken"; + repo = pname; + rev = version; + sha256 = "sha256-C1o9HWWJ/G/7Pp6I0FbRmX2PQvUJx71L9wHRkUMtnL4="; + }; + + propagatedBuildInputs = [ + aiohttp + ]; + + checkInputs = [ + pytest-aiohttp + pytestCheckHook + ]; + + pythonImportsCheck = [ + "arris_tg2492lg" + ]; + + meta = with lib; { + description = "Library to connect to an Arris TG2492LG"; + homepage = "https://github.com/vanbalken/arris-tg2492lg"; + 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 e419db5df93a..4ae48dd319d0 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -162,7 +162,8 @@ pyarlo ]; "arris_tg2492lg" = ps: with ps; [ - ]; # missing inputs: arris-tg2492lg + arris-tg2492lg + ]; "aruba" = ps: with ps; [ pexpect ]; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 049feab5981c..9b79741bcf82 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -631,6 +631,8 @@ in { arrayqueues = callPackage ../development/python-modules/arrayqueues { }; + arris-tg2492lg = callPackage ../development/python-modules/arris-tg2492lg { }; + arrow = callPackage ../development/python-modules/arrow { }; arviz = callPackage ../development/python-modules/arviz { };