Files
nix-config/packages/python/pipewire-python/default.nix
mjallen18 bd799661b9 fix avahi
2026-03-31 13:33:42 -05:00

32 lines
681 B
Nix

{
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;
}