[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to include python libraries not in debian for building a debian package?



On Mon, 30 Jun 2025 at 06:09:07 +0000, Aryan Karamtoth wrote:
I'm working on creating a package for a software that's built for GNOME GTK4 +
Libadwaita using Python. The problem is that the software uses a lot of
dependencies mostly python libraries that aren't on debian but only on pip. I
need these libraries to be put into debian/control.

Since they aren't on debian, how do I proceed with this?

If a required library isn't in Debian, the process is to package it first, and then use it for your higher-level package.

The missing packages are:

 • Python Pillow

This is definitely in Debian, under the name python3-pil.

The general rule is that if you would write "import Foobar" in your Python code, then the Debian package is named python3-foobar. Reference: https://www.debian.org/doc/packaging-manuals/python-policy/

 • ODFpy (python library)

Looks like python3-odf is probably this

 • PyICU (python library)

Looks likely to be python3-icu

 • Openai (python lib)

Probably python3-openai?

 • LibSpelling (by GNOME)

gir1.2-spelling-1, which you can use via python3-gi

 • Youtube-Transcript-API (python library)
 • MarkItDown (python lib)
 • DuckDuckGo-search (python lib)

These don't seem to be in Debian, if they're mandatory dependencies then either you or someone else will need to package them first.

    smcv


Reply to: