Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The solution to Python packages is the 'pypi2nix' tool. This is an alternate approach that you see also used in the blog post, this time with vgo2nix. These tools take a set of dependencies (e.g. requirements.txt) and generate Nix expressions to build all of them from source.


You may also want to take a look at https://github.com/nix-community/poetry2nix

Disclaimer: I am the author (and also the author of vgo2nix).


Guix has `guix import pypi PACKAGE`, which spits out a complete definition that you can pop into a file or the main Guix repository.

'guix import' also takes a --recursive argument, which makes it recursively consider any dependencies and produce package definitions for those not already available.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: