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

home-assistant: support upb component

authored by

Fabian Affolter and committed by
GitHub
88e37bb4 a29a3981

+40 -1
+36
pkgs/development/python-modules/upb-lib/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , pythonOlder 4 + , fetchPypi 5 + , pyserial-asyncio 6 + , pytz 7 + }: 8 + 9 + buildPythonPackage rec { 10 + pname = "upb-lib"; 11 + version = "0.4.12"; 12 + 13 + disabled = pythonOlder "3.7"; 14 + 15 + src = fetchPypi { 16 + inherit pname version; 17 + sha256 = "e668055d9c389aefd09203afb96a950a320095f225ef0a1aa611e592db92a71b"; 18 + }; 19 + 20 + propagatedBuildInputs = [ 21 + pyserial-asyncio 22 + pytz 23 + ]; 24 + 25 + # no tests on PyPI, no tags on GitHub 26 + doCheck = false; 27 + 28 + pythonImportsCheck = [ "upb_lib" ]; 29 + 30 + meta = with lib; { 31 + description = "Library for interacting with UPB PIM"; 32 + homepage = "https://github.com/gwww/upb-lib"; 33 + license = licenses.mit; 34 + maintainers = with maintainers; [ dotlambda ]; 35 + }; 36 + }
+1 -1
pkgs/servers/home-assistant/component-packages.nix
··· 903 903 "unifi_direct" = ps: with ps; [ pexpect ]; 904 904 "unifiled" = ps: with ps; [ unifiled ]; 905 905 "universal" = ps: with ps; [ ]; 906 - "upb" = ps: with ps; [ ]; # missing inputs: upb_lib 906 + "upb" = ps: with ps; [ upb-lib ]; 907 907 "upc_connect" = ps: with ps; [ connect-box ]; 908 908 "upcloud" = ps: with ps; [ ]; # missing inputs: upcloud-api 909 909 "updater" = ps: with ps; [ distro ];
+1
pkgs/servers/home-assistant/default.nix
··· 715 715 "unifi" 716 716 "unifi_direct" 717 717 "universal" 718 + "upb" 718 719 "updater" 719 720 "upnp" 720 721 "uptime"
+2
pkgs/top-level/python-packages.nix
··· 8839 8839 8840 8840 upass = callPackage ../development/python-modules/upass { }; 8841 8841 8842 + upb-lib = callPackage ../development/python-modules/upb-lib { }; 8843 + 8842 8844 update_checker = callPackage ../development/python-modules/update_checker { }; 8843 8845 8844 8846 update-copyright = callPackage ../development/python-modules/update-copyright { };