Skip to content

Freeze pip-installable pacakges into Nix expressions

Notifications You must be signed in to change notification settings

marcinkuzminski/pip2nix

 
 

Repository files navigation

pip2nix

Generate nix expressions for Python packages.

Build Status

Documentation Status

PyPI status

PyPI version

Why another .nix generator for Python?

I needed something that can work not only with pypi but also with local paths, VCS links, and dependency links. I couldn't get any of the other generators to work, so I started my own :-)

Installation

$ git clone htts://github.com/ktosiek/pip2nix
$ nix-env -f pip2nix/release.nix -iA pip2nix.python34  # Same Python as target packages

Usage

To generate python-packages.nix for a set of requirements:

$ pip2nix generate -r requirements.txt

pip2nix generate takes the same set of package specifications pip install does.

Contact

Problems and questions should go to GitHub issues. If you need real-time help you can try pinging me - I'm ktosiek on Freenode, and @tkontusz on Twitter.

About

Freeze pip-installable pacakges into Nix expressions

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 77.9%
  • Nix 19.5%
  • Shell 2.6%