{ lib, python3, ... }: python3.pkgs.buildPythonApplication { pname = "hhstream"; version = "0.1.0"; pyproject = true; src = ../.; build-system = [ python3.pkgs.setuptools ]; # `hhstream-pointer` is a Wayland client, so it needs libwayland's marshalling. # The wlr virtual-pointer protocol itself is *not* a build input: the generated # module is vendored under src/hhstream_pointer/_protocol, so a checkout builds # without a code generator. See that package's docstring for why, and # hhstream_pointer._protocol.regenerate for how to refresh it. dependencies = [ python3.pkgs.pywayland ]; # Unit tests are wired up in the flake's `checks` so they can run without # installing the package; see docs/CONTRACT.md. doCheck = false; # Cheap proof that the vendored protocol still binds against this pywayland: # importing it runs the scanner-generated `_gen_c()` for both interfaces. pythonImportsCheck = [ "hhstream_pointer.ops" "hhstream_pointer._protocol.wlr_virtual_pointer_unstable_v1" ]; meta = { description = "Publish a headless Hyprland session's frames on a Unix socket"; license = lib.licenses.mit; mainProgram = "hhstream-server"; }; }