This is the recepie for packaging carburetor as flatpak.
Fill all python requirements (except PyGobject as that one is already provided in org.gnome.Platform runtime) in requirements.txt file and use flatpak pip generator to update python3-requirements.json as below:
python3 flatpak-pip-generator --requirements-file=requirements.txt
For any Golang project, go to the project directory and run:
go run github.com/dennwc/flatpak-go-mod@latest <path/to/project/>
flatpak-builder --force-clean build-dir io.frama.tractor.carburetor.json
flatpak-builder --user --install --force-clean build-dir io.frama.tractor.carburetor.json
flatpak run io.frama.tractor.carburetor