Merge pull request #171922 from dotlambda/py-nextbusnext-init

home-assistant: support nextbus component
main
Martin Weinelt 2 years ago committed by GitHub
commit c23b6185da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 32
      pkgs/development/python-modules/py-nextbusnext/default.nix
  2. 4
      pkgs/servers/home-assistant/component-packages.nix
  3. 2
      pkgs/top-level/python-packages.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 ];
};
}

@ -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"

@ -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 { };

Loading…
Cancel
Save