mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 16:42:09 +00:00
Merge pull request #128306 from dotlambda/upcloud-api-init
home-assistant: support upcloud component
This commit is contained in:
commit
15e7d05b11
37
pkgs/development/python-modules/upcloud-api/default.nix
Normal file
37
pkgs/development/python-modules/upcloud-api/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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; [ ];
|
||||
|
|
|
@ -719,6 +719,7 @@ in with py.pkgs; buildPythonApplication rec {
|
|||
"unifi_direct"
|
||||
"universal"
|
||||
"upb"
|
||||
"upcloud"
|
||||
"updater"
|
||||
"upnp"
|
||||
"uptime"
|
||||
|
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue