Packaging a python pip package (sqlite-web)


#1

I’m wondering how to package a pip package. https://github.com/coleifer/sqlite-web says to just do pip install sqlite-web, I already turned that into pipenv install sqlite-web, but ideally it would just be a package.


#2

Use the buildPythonApplication function, and get the source with fetchPypi. Search through the nixpkgs repository for those two functions and you’ll find plenty of examples if you get stuck!


#3

If you would like this package added to nixpkgs please create an issue and cc me “costrouc” and I’ll create a PR to add the package. Also happy to guide you through a PR if you would like to learn how to contribute the package yourself!


#4

Thank you for the kind offer, I’ll be happy to look at the resulting PR! https://github.com/NixOS/nixpkgs/issues/50949