Skip to content

Commit

Permalink
Merge pull request #333498 from dotlambda/python3Packages.webmin-xmlrpc
Browse files Browse the repository at this point in the history
home-assistant: support webmin component
  • Loading branch information
mweinelt authored Aug 9, 2024
2 parents 7742443 + 4bb8a06 commit eea70ed
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 1 deletion.
37 changes: 37 additions & 0 deletions pkgs/development/python-modules/webmin-xmlrpc/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
aiohttp,
buildPythonPackage,
fetchFromGitHub,
lib,
setuptools,
}:

buildPythonPackage rec {
pname = "webmin-xmlrpc";
version = "0.0.2";
pyproject = true;

src = fetchFromGitHub {
owner = "autinerd";
repo = "webmin-xmlrpc";
rev = "refs/tags/${version}";
hash = "sha256-qCS5YV3o7ozO7fDaJucQvU0dEyTbxTivtTDKQVY4pkM=";
};

build-system = [ setuptools ];

dependencies = [ aiohttp ];

pythonImportsCheck = [ "webmin_xmlrpc" ];

# upstream has no tests
doCheck = false;

meta = {
changelog = "https://github.com/autinerd/webmin-xmlrpc/releases/tag/${version}";
description = "Python interface to interact with the Webmin XML-RPC API";
homepage = "https://github.com/autinerd/webmin-xmlrpc";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}
4 changes: 3 additions & 1 deletion pkgs/servers/home-assistant/component-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4585,7 +4585,8 @@
"webhook" = ps: with ps; [
];
"webmin" = ps: with ps; [
]; # missing inputs: webmin-xmlrpc
webmin-xmlrpc
];
"webostv" = ps: with ps; [
aiowebostv
];
Expand Down Expand Up @@ -5655,6 +5656,7 @@
"weatherflow_cloud"
"weatherkit"
"webhook"
"webmin"
"webostv"
"websocket_api"
"wemo"
Expand Down
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17378,6 +17378,8 @@ self: super: with self; {

webexteamssdk = callPackage ../development/python-modules/webexteamssdk { };

webmin-xmlrpc = callPackage ../development/python-modules/webmin-xmlrpc { };

webob = callPackage ../development/python-modules/webob { };

webrtc-noise-gain = callPackage ../development/python-modules/webrtc-noise-gain { };
Expand Down

0 comments on commit eea70ed

Please sign in to comment.