diff --git a/pkgs/development/python-modules/py-nextbusnext/default.nix b/pkgs/development/python-modules/py-nextbusnext/default.nix new file mode 100644 index 00000000000..3b6d24d6168 --- /dev/null +++ b/pkgs/development/python-modules/py-nextbusnext/default.nix @@ -0,0 +1,32 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "py-nextbusnext"; + version = "0.1.5"; + + format = "setuptools"; + + src = fetchFromGitHub { + owner = "ViViDboarder"; + repo = "py_nextbus"; + rev = "v${version}"; + hash = "sha256-uUHA8v5iTISmPaTgk0RvcLLRM34f3JXUjZClKGXdMoI="; + }; + + checkInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ "py_nextbus" ]; + + meta = { + description = "Minimalistic Python client for the NextBus public API"; + homepage = "https://github.com/ViViDboarder/py_nextbus"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ dotlambda ]; + }; +} diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index d91ad268c9a..afed37e315d 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -1753,7 +1753,8 @@ nexia ]; "nextbus" = ps: with ps; [ - ]; # missing inputs: py_nextbusnext + py-nextbusnext + ]; "nextcloud" = ps: with ps; [ nextcloudmonitor ]; @@ -3501,6 +3502,7 @@ "netgear" "network" "nexia" + "nextbus" "nightscout" "nina" "no_ip" diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 3986a82fa89..9b3942d7e98 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6369,6 +6369,8 @@ in { proxy_tools = callPackage ../development/python-modules/proxy_tools { }; + py-nextbusnext = callPackage ../development/python-modules/py-nextbusnext { }; + pyaehw4a1 = callPackage ../development/python-modules/pyaehw4a1 { }; pyatag = callPackage ../development/python-modules/pyatag { };