nixpkgs/pkgs/development/python-modules/androidtv/default.nix
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

59 lines
1.1 KiB
Nix

{
lib,
adb-shell,
aiofiles,
async-timeout,
buildPythonPackage,
fetchFromGitHub,
mock,
pure-python-adb,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "androidtv";
version = "0.0.75";
pyproject = true;
src = fetchFromGitHub {
owner = "JeffLIrion";
repo = "python-androidtv";
tag = "v${version}";
hash = "sha256-2WFfGGEZkM3fWyTo5P6H3ha04Qyx2OiYetlGWv0jXac=";
};
build-system = [ setuptools ];
dependencies = [
adb-shell
async-timeout
pure-python-adb
];
optional-dependencies = {
async = [ aiofiles ];
inherit (adb-shell.optional-dependencies) usb;
};
nativeCheckInputs = [
mock
pytestCheckHook
]
++ optional-dependencies.async
++ optional-dependencies.usb;
disabledTests = [
# Requires git but fails anyway
"test_no_underscores"
];
pythonImportsCheck = [ "androidtv" ];
meta = {
description = "Communicate with an Android TV or Fire TV device via ADB over a network";
homepage = "https://github.com/JeffLIrion/python-androidtv/";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ jamiemagee ];
};
}