Convert a Python requirements file to a basic Nix shell configuration file
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Matthias Thym 08b3e8a133 Initial commit 10 months ago
README.md Initial commit 10 months ago
process.sh Initial commit 10 months ago
requirements.txt Initial commit 10 months ago
shell.nix Initial commit 10 months ago
skeleton.nix Initial commit 10 months ago

README.md

nix-requirements

This shell script converts a Python requirements file to a basic Nix shell configuration file.

As input it takes a list of Python requirements from the requirements.txt file and populates the skeleton in skeleton.nix to create a Nix shell configuration file shell.nix.

Currently there is no option to modify paths with e.g. command line arguments besides editing the variables in process.sh itself.

Also the script does not consider versions of Python packages specified in requirements.txt and instead ignores them completely.

This means that Python packages installed in the Nix shell environment might not be installed in the right version.