2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
aiohttp,
|
|
|
|
attrs,
|
|
|
|
buildPythonPackage,
|
|
|
|
defusedxml,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pythonOlder,
|
|
|
|
pytest-asyncio,
|
|
|
|
pytestCheckHook,
|
|
|
|
setuptools,
|
|
|
|
pytest-vcr,
|
|
|
|
syrupy,
|
2021-01-05 17:05:55 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "connect-box";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.4.0";
|
|
|
|
pyproject = true;
|
2024-01-13 08:15:51 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
disabled = pythonOlder "3.10";
|
2021-01-05 17:05:55 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "home-assistant-ecosystem";
|
|
|
|
repo = "python-connect-box";
|
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-zUvZRnxVzg9izvUbp7QVcyu6Bw3dUXHOr0kOQRWEZVc=";
|
2021-01-05 17:05:55 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2024-04-21 15:54:59 +00:00
|
|
|
|
2021-01-05 17:05:55 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
attrs
|
|
|
|
defusedxml
|
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
pytest-vcr
|
|
|
|
syrupy
|
|
|
|
];
|
2021-01-05 17:05:55 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "connect_box" ];
|
2021-01-05 17:05:55 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pytestFlagsArray = [ "--vcr-record=none" ];
|
2024-04-21 15:54:59 +00:00
|
|
|
|
2021-01-05 17:05:55 +00:00
|
|
|
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";
|
2024-01-13 08:15:51 +00:00
|
|
|
changelog = "https://github.com/home-assistant-ecosystem/python-connect-box/releases/tag/${version}";
|
2021-01-05 17:05:55 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|