nixpkgs/pkgs/by-name/wo/wox/plugin-host-python.nix
eljamm 262976908b wox: refactor derivation
- split sub-packages into separate derivations
- use finalAttrs
- inherit meta attributes
2026-06-09 17:34:17 +02:00

46 lines
813 B
Nix

{
python3Packages,
callPackage,
wox,
writableTmpDirAsHomeHook,
}:
python3Packages.buildPythonApplication (finalAttrs: {
pname = "wox-plugin-host-python";
inherit (wox) version src;
pyproject = true;
sourceRoot = "${finalAttrs.src.name}/wox.plugin.host.python";
build-system = with python3Packages; [
hatchling
];
nativeBuildInputs = [
writableTmpDirAsHomeHook
];
buildInputs = with python3Packages; [
loguru
websockets
finalAttrs.passthru.plugin-python
];
dependencies = with python3Packages; [
loguru
websockets
finalAttrs.passthru.plugin-python
];
passthru = {
plugin-python = callPackage ./plugin-python.nix { };
};
meta = {
inherit (wox.meta)
description
homepage
license
maintainers
;
};
})