[Nix-dev] Best way to install a bunch of old Python packages

2014-09-26 Thread Jascha Geerds
What is the best way in NixOS to install a bunch of old Python 2.6
packages? Most of them aren't inside nixpkgs and especially not in the
correct version. All I have is a single requirements.txt file (in a
pip readable format).

I've found two tools:

[garbas' pypi2nix]
https://github.com/garbas/pypi2nix

[offlinehacker's pypi2nix]
https://github.com/offlinehacker/pypi2nix

The first one can't handle dependencies (a full requirements.txt is
required, like pip freeze will generate) whereas the latter one can't
parse requirements.txt at all. Don't get me wrong, both tools are great.
However, is there a reason for separating these projects? Is there
another alternative project to get the job done?

-- 
  Jascha Geerds
  j...@ekby.de
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Best way to install a bunch of old Python packages

2014-09-26 Thread Paul Colomiets
Hi,

On Fri, Sep 26, 2014 at 1:01 PM, Jascha Geerds j...@ekby.de wrote:
 Is there another alternative project to get the job done?


There are also:

https://github.com/proger/python2nix

https://github.com/tailhook/reqtxt2nix

But they doesn't handle dependencies either :) I use the latter (which
I'm also author of), because it doesn't execute untrusted code when
generating expressions (which also means it never fails to import
setup.py, which others often do).

The existence of many similar projects is quite unuseful for the
community. But it was easier to write my own generator of nix
expressions than to get others working. But YMMV

Sorry for not being too helpful :)

-- 
Paul
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev