{ lib, namespace, pkgs, python3Packages, ... }: 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."pipewire-python"; in python3Packages.buildPythonPackage { pname = "pipewire-python"; version = if src-meta ? tag then src-meta.tag else src-meta.rev; format = "pyproject"; src = sources."pipewire-python"; buildInputs = with python3Packages; [ flit-core ]; nativeBuildInputs = with python3Packages; [ build wheel ]; doCheck = false; }