summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/wo/wox/plugin-host-python.nix
blob: 1c21d902450710d4a2814f26d2fd6a4574540498 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{
  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
      ;
  };
})