{ lib, namespace, pkgs, home-assistant, ... }: let inherit (lib.trivial) importJSON; inherit (lib.${namespace}) selectVariant mkAllSources; versionSpec = importJSON ./version.json; selected = selectVariant versionSpec null null; sources = mkAllSources pkgs selected; src-meta = selected.sources.pyoverseerr; in home-assistant.python.pkgs.buildPythonPackage { pname = "pyoverseerr"; version = if src-meta ? tag then src-meta.tag else src-meta.rev; format = "setuptools"; src = sources.pyoverseerr; build-system = [ home-assistant.python.pkgs.setuptools ]; doCheck = false; # no tests in the PyPI tarball }