32 lines
681 B
Nix
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;
|
|
}
|