Merge pull request #128306 from dotlambda/upcloud-api-init

home-assistant: support upcloud component
This commit is contained in:
Fabian Affolter 2021-06-27 16:04:06 +02:00 committed by GitHub
commit 15e7d05b11
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 41 additions and 1 deletions

View file

@ -0,0 +1,37 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, requests
, pytestCheckHook
, responses
}:
buildPythonPackage rec {
pname = "upcloud-api";
version = "2.0.0";
src = fetchFromGitHub {
owner = "UpCloudLtd";
repo = "upcloud-python-api";
rev = "v${version}";
sha256 = "1kkgrn97pw4k49ys97hjrvh2j8y2p2r9970v9csgrk5wci4562wm";
};
propagatedBuildInputs = [
requests
];
checkInputs = [
pytestCheckHook
responses
];
pythonImportsCheck = [ "upcloud_api" ];
meta = with lib; {
description = "UpCloud API Client";
homepage = "https://github.com/UpCloudLtd/upcloud-python-api";
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
};
}

View file

@ -905,7 +905,7 @@
"universal" = ps: with ps; [ ];
"upb" = ps: with ps; [ upb-lib ];
"upc_connect" = ps: with ps; [ connect-box ];
"upcloud" = ps: with ps; [ ]; # missing inputs: upcloud-api
"upcloud" = ps: with ps; [ upcloud-api ];
"updater" = ps: with ps; [ distro ];
"upnp" = ps: with ps; [ async-upnp-client ];
"uptime" = ps: with ps; [ ];

View file

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

View file

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