Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for python 3.11 #514

Open
chaoflow opened this issue Oct 2, 2022 · 2 comments
Open

Support for python 3.11 #514

chaoflow opened this issue Oct 2, 2022 · 2 comments

Comments

@chaoflow
Copy link

chaoflow commented Oct 2, 2022

We have python311 in nixpkgs, however, using it in the following flake fails:

{
  inputs.flake-utils.url = "github:numtide/flake-utils";
  inputs.mach-nix.url = "mach-nix";
  inputs.mach-nix.inputs.flake-utils.follows = "flake-utils";
  inputs.mach-nix.inputs.nixpkgs.follows = "nixpkgs";
  inputs.mach-nix.inputs.pypi-deps-db.follows = "pypi-deps-db";
  inputs.pypi-deps-db.url = "github:DavHau/pypi-deps-db";
  inputs.pypi-deps-db.inputs.mach-nix.follows = "mach-nix";
  inputs.pypi-deps-db.inputs.nixpkgs.follows = "nixpkgs";

  outputs = {
      self,
      nixpkgs,
      flake-utils,
      mach-nix,
      pypi-deps-db,
  }:
    flake-utils.lib.eachDefaultSystem (
      system: let
        pkgs = nixpkgs.legacyPackages.${system};
        l = nixpkgs.lib // builtins;
        requirements =
          l.concatStringsSep "\n" [
            "build"
          ];
        mach = mach-nix.lib.${system};
        pyenv = mach.mkPython {
          inherit requirements;
          # python = "python38";
          # python = "python39";
          # python = "python310";
          python = "python311";
        };
      in {
        devShell = pkgs.mkShell {
          buildInputs = with pkgs; [
            pyenv
          ];
        };
      }
    );
}
@chaoflow
Copy link
Author

chaoflow commented Oct 2, 2022

❯ nix develop             
error: attribute 'linux_py_311_cpu' missing

       at /nix/store/mhkhnp41briffzh0fq3nsmrfzncxqxcn-source/pkgs/development/python-modules/tensorflow/bin.nix:57:15:

           56|     key = "${platform}_py_${pyVerNoDot}_${unit}";
           57|   in fetchurl packages.${key};
             |               ^
           58|
       Did you mean one of linux_py_310_cpu, linux_py_310_gpu, linux_py_37_cpu, linux_py_38_cpu or linux_py_39_cpu?
(use '--show-trace' to show detailed location information)

@TyberiusPrime
Copy link
Collaborator

I think pypi-deps-db also has no entries for 3.11 so far.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants