Merge pull request #108169 from fabaff/connect_box

python3Packages.connect-box: init at 0.2.8
This commit is contained in:
Pavol Rusnak 2021-01-02 17:04:19 +01:00 committed by GitHub
commit 2316f54f25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 45 additions and 1 deletions

View File

@ -0,0 +1,42 @@
{ lib
, buildPythonPackage
, fetchPypi
, aiohttp
, attrs
, defusedxml
}:
buildPythonPackage rec {
pname = "connect-box";
version = "0.2.8";
src = fetchPypi {
pname = "connect_box";
inherit version;
sha256 = "1lvz7g2f0a9ifnjczmbavn105miirdgyayr4sixhzgdgadcdhz3l";
};
propagatedBuildInputs = [
aiohttp
attrs
defusedxml
];
# no tests are present
doCheck = false;
pythonImportsCheck = [ "connect_box" ];
meta = with lib; {
description = "Interact with a Compal CH7465LG cable modem/router";
longDescription = ''
Python Client for interacting with the cable modem/router Compal
CH7465LG which is provided under different names by various ISP
in Europe, e.g., UPC Connect Box (CH), Irish Virgin Media Super
Hub 3.0 (IE), Ziggo Connectbox (NL) or Unitymedia Connect Box (DE).
'';
homepage = "https://github.com/home-assistant-ecosystem/python-connect-box";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View File

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

View File

@ -1118,6 +1118,8 @@ in {
cement = callPackage ../development/python-modules/cement { };
connect-box = callPackage ../development/python-modules/connect_box { };
cerberus = callPackage ../development/python-modules/cerberus { };
certbot = callPackage ../development/python-modules/certbot { };