Merge pull request #171922 from dotlambda/py-nextbusnext-init
home-assistant: support nextbus component
This commit is contained in:
commit
c23b6185da
32
pkgs/development/python-modules/py-nextbusnext/default.nix
Normal file
32
pkgs/development/python-modules/py-nextbusnext/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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…
Reference in New Issue
Block a user