[Nix-dev] Re: python eggs to nix expressions

Ludovic Courtès ludo at gnu.org
Thu Aug 26 11:59:10 CEST 2010


Hello,

Florian Friesdorf <flo at chaoflow.net> writes:

> Would it be sane to automatically convert python egg specifications into
> nix expressions?
>
> zc.buildout enables so-called recipes, that execute scripts, generate
> config and create isolated python scripts based on python sys.path
> manipulation.

It’d be useful to extract dependency information from egg specifications
and setuptools snippets and somehow convert it to Nix.  The problem is
that the conversion tool would need to know the mapping between the
Python/setuptools package names and the Nixpkgs attribute names.

As for build scripts, I doubt they would be usable directly, but I’m not
familiar with these tools.

Besides, ‘buildPythonPackage’ automatically creates wrappers for
stand-alone Python applications that define the right $PYTHONPATH (see,
e.g., the ‘tahoe’ executable.)

Thanks,
Ludo’.




More information about the nix-dev mailing list