Merge pull request #128193 from dotlambda/upb-lib-init

home-assistant: support upb component
This commit is contained in:
Fabian Affolter 2021-06-26 17:28:18 +02:00 committed by GitHub
commit 88e37bb4fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 40 additions and 1 deletions

View file

@ -0,0 +1,36 @@
{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, pyserial-asyncio
, pytz
}:
buildPythonPackage rec {
pname = "upb-lib";
version = "0.4.12";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "e668055d9c389aefd09203afb96a950a320095f225ef0a1aa611e592db92a71b";
};
propagatedBuildInputs = [
pyserial-asyncio
pytz
];
# no tests on PyPI, no tags on GitHub
doCheck = false;
pythonImportsCheck = [ "upb_lib" ];
meta = with lib; {
description = "Library for interacting with UPB PIM";
homepage = "https://github.com/gwww/upb-lib";
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
};
}

View file

@ -903,7 +903,7 @@
"unifi_direct" = ps: with ps; [ pexpect ];
"unifiled" = ps: with ps; [ unifiled ];
"universal" = ps: with ps; [ ];
"upb" = ps: with ps; [ ]; # missing inputs: upb_lib
"upb" = ps: with ps; [ upb-lib ];
"upc_connect" = ps: with ps; [ connect-box ];
"upcloud" = ps: with ps; [ ]; # missing inputs: upcloud-api
"updater" = ps: with ps; [ distro ];

View file

@ -715,6 +715,7 @@ in with py.pkgs; buildPythonApplication rec {
"unifi"
"unifi_direct"
"universal"
"upb"
"updater"
"upnp"
"uptime"

View file

@ -8839,6 +8839,8 @@ in {
upass = callPackage ../development/python-modules/upass { };
upb-lib = callPackage ../development/python-modules/upb-lib { };
update_checker = callPackage ../development/python-modules/update_checker { };
update-copyright = callPackage ../development/python-modules/update-copyright { };