# Need help to package slidge-whatsapp

**URL:** https://discourse.nixos.org/t/need-help-to-package-slidge-whatsapp/78883
**Category:** Help
**Created:** [July 12, 2026, 11:31am UTC](https://discourse.nixos.org/t/need-help-to-package-slidge-whatsapp/78883 "2026-07-12T11:31:21Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![mirror](https://discourse.nixos.org/letter_avatar_proxy/v4/letter/m/3be4f8/32.png) [@mirror](https://discourse.nixos.org/u/mirror)
#### Post date: [July 14, 2026, 10:31am UTC](https://discourse.nixos.org/t/need-help-to-package-slidge-whatsapp/78883/3 "2026-07-14T10:31:21Z")

</div>

Yesterday I found I can build the package with `devenv` environment with `uv` package and just run `uv build` to build it from source in codeberg easily, then I can get a `.whl` file inside a `dist` folder.

However I cannot able to do it in nix way, as manually running the `gopy build` command in the `build.py` file outside the `uv build` environment do not work. It throws error about something like this: [# github.com/gen2brain/go-fitz | /go/pkg/mod/github.com/gen2brain/go-fitz@v1.18.0/fitz.go:8:10: fatal error: mupdf/fitz.h: No such file or directory · Issue #41 · gen2brain/go-fitz · GitHub](https://github.com/gen2brain/go-fitz/issues/41)

Not only that, doing it in `buildGoModule` don’t work in another way because it do not have internet access i guess because of `GOPROXY=off` issue. Manually setting `GOPROXY` to point to some manually crafted `goModules` also not help.

Today I learned what `.whl` actually is as I don’t know much about python, and I figured out `fetchPypi` can fetch wheel and not the source, so I came up another way to package it.

```nix
{
  fetchPypi,
  python3Packages,
  python3,
  ...
}:
let
  # from pkgs/development/python-modules/clarifai-protocol/default.nix
  pythonVersionNoDot = builtins.replaceStrings ["."] [""] python3.pythonVersion;
in
python3Packages.buildPythonPackage (finalAttrs: {
  pname = "slidge-whatsapp";
  version = "0.3.11";
  format = "wheel";

  src = fetchPypi {
    format = "wheel";
    pname = "slidge_whatsapp";
    version = finalAttrs.version;
    python = "cp${pythonVersionNoDot}";
    abi = "cp${pythonVersionNoDot}";
    dist = "cp${pythonVersionNoDot}";
    platform = "manylinux_2_41_x86_64";
    hash = "sha256-SbnRWbp2xnBg5lSNMUqwZZ0NzLQg+pOg+51LzSFr5bY=";
  };

  propagatedBuildInputs = [
    (import ../slidge)
    (import ../linkpreview)
  ];

  meta = {
    # #...
  };
})

```

I just switch the `src` with my local build `.whl` file.

Dependencies `slidge` and `linkpreview` need to be packaged, which is not hard. I also got help to package `slidge` yesterday here; [Need help for packaging python package (package not installed error)](https://discourse.nixos.org/t/need-help-for-packaging-python-package-package-not-installed-error/78904)

I am now just able to get `./result/bin/slidge-whatsapp` to show some proper help message, but I have to set things up to see if it actually works.

---

_[View the full topic](https://discourse.nixos.org/t/need-help-to-package-slidge-whatsapp/78883)._
