Skip to main content

pip2nix

Generate nix expressions for Python packages.

Build Status Documentation Status PyPI status PyPI version

Why another .nix generator for Python?

The original author of pip2nix started the project with the following motivation:

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

Be aware that pip2nix is not yet mature software. It is a tool to aid Python developers who use Nix to automate a good chunk of the work to maintain a Nix based development environments.

The recommended usage at the moment is inside of a nix-shell, since this avoids putting a specific version into the user’s environment:

$ git clone https://github.com/johbo/pip2nix
$ cd pip2nix
$ nix-shell release.nix -A pip2nix.python36

Alternatively pip2nix can be installed into the user’s environment:

$ git clone https://github.com/johbo/pip2nix
$ nix-env -f pip2nix/release.nix -iA pip2nix.python35

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.

Credits and History

Tomasz Kontusz started the project back in 2015, he’s ktosiek on Freenode, and @tkontusz on Twitter.

In 2016 Johannes Bornhold took over as maintainer, since he was actively using pip2nix and Tomas was not actively using it himself anymore. Find him via https://www.johbo.com.

Metadata

Release files for pip2nix 0.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pip2nix 0.7.0
File Size Uploaded Provenance Actions
pip2nix-0.7.0.tar.gz 24.3 kB Without provenance Details for pip2nix-0.7.0.tar.gz

Release files / pip2nix-0.7.0.tar.gz

Download URL pip2nix-0.7.0.tar.gz
Size 24.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ec9a71e09ac7f43cc7b6c9d386384eb7b5c331bf6ea0e72ca559d87979397a95
BLAKE2b-256 checksum
How to use checksums
e8b48bb100b5854edc58a39e43298481dbe4a495ae8ec053a4d14c4431b5f1fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for pip2nix 0.7.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page