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 00000000000..9a883b2f68e --- /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/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index a98d1765183..3f9a3ce334c 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 { };