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

home-assistant: support nextbus component
This commit is contained in:
Martin Weinelt 2022-05-07 11:53:41 +02:00 committed by GitHub
commit c23b6185da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 37 additions and 1 deletions

View File

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

View File

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

View File

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