2

GitHub - cachix/nixpkgs-python: All Python versions, kept up-to-date on hourly b...

 1 year ago
source link: https://github.com/cachix/nixpkgs-python
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

nixpkgs-python

All Python versions, kept up-to-date on hourly basis using Nix.

Supported Python Versions

This project supports the following Python versions:

  • 2.7.6+
  • 3.3.1+ (up to the latest release)

Cachix (optional)

If you'd like to avoid compilation install Cachix and:

$ cachix use nixpkgs-python

Usage

ad-hoc

You can run this package ad-hoc using the following command:

$ nix shell github:cachix/nixpkgs-python#'"2.7"'

Or specify a minor version:

$ nix shell github:cachix/nixpkgs-python#'"2.7.16"'

devenv.sh

Create devenv.nix:

{ pkgs, ... }: 

{
  languages.python.enable = true;
  languages.python.version = "3.11";
  # languages.python.version = "3.11.3";
}

And run:

$ devenv shell
...

flake.nix

{
  inputs = {
    nixpkgs-python.url = "github:cachix/nixpkgs-python";
  };

  outputs = { self, nixpkgs-python }: {
    # You can now refer to packages like:
    #   nixpkgs-python.packages.x86_64-linux."2.7"
  };
}

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK