Files
nixpkgs/pkgs/development/python-modules/connect-box/default.nix
T
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

60 lines
1.4 KiB
Nix

{
lib,
aiohttp,
attrs,
buildPythonPackage,
defusedxml,
fetchFromGitHub,
pytest-asyncio,
pytestCheckHook,
setuptools,
pytest-vcr,
syrupy,
}:
buildPythonPackage rec {
pname = "connect-box";
version = "0.4.0";
pyproject = true;
src = fetchFromGitHub {
owner = "home-assistant-ecosystem";
repo = "python-connect-box";
tag = version;
hash = "sha256-zUvZRnxVzg9izvUbp7QVcyu6Bw3dUXHOr0kOQRWEZVc=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
aiohttp
attrs
defusedxml
];
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
pytest-vcr
syrupy
];
pythonImportsCheck = [ "connect_box" ];
pytestFlags = [ "--vcr-record=none" ];
meta = {
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";
changelog = "https://github.com/home-assistant-ecosystem/python-connect-box/releases/tag/${version}";
license = with lib.licenses; [ mit ];
maintainers = with lib.maintainers; [ fab ];
};
}