Add Python packaging (pyproject.toml) and Nix flake - #441
Open
bittner wants to merge 2 commits into
Open
Conversation
Adds a pyproject.toml so the application can be installed and run with standard Python tooling (pip, uv) instead of copying files by hand. Exposes a "remarkable" console entry point, declares the pure-Python dependencies, and bundles the data tree as the remarkable.data package so the UI and media files ship in the wheel. Resolves the data directory via importlib.resources with fallbacks for source checkouts and system prefixes, and fixes the intra-package imports so the modules load when properly installed. The README now lists the system GTK packages each distribution provides. Closes jamiemcg#425
Adds a flake.nix that provides the GTK runtime (PyGObject, GTK 3, GtkSourceView, WebKit2) and wkhtmltopdf, which cannot come from PyPI. The default package and app make "nix run" launch the editor directly, while the dev shell wires up "uv run remarkable" against the system bindings.
bittner
force-pushed
the
feature/python-packaging-nixos
branch
from
June 28, 2026 13:00
cdef350 to
1c6e354
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds standard Python packaging via pyproject.toml so Remarkable installs and runs with pip/uv instead of copying files by hand (closes #425).
remarkableconsole entry point, declared pure-Python dependencies, and the bundled data tree exposed as theremarkable.datapackage and resolved throughimportlib.resourcesso the UI and media files ship in the wheel.Also adds a Nix flake providing the GTK runtime (PyGObject, GTK 3, GtkSourceView, WebKit2) and wkhtmltopdf that cannot come from PyPI, with
nix runto launch the editor directly and a dev shell wiring upuv run remarkableagainst the system bindings on NixOS.