DavHau / mach-nix

Create highly reproducible python environments
MIT License
858 stars 105 forks source link

package pdm is not available in python310 but python39 #465

Open nasyxx opened 2 years ago

nasyxx commented 2 years ago

Package pdm is not available in python310 but python39.

I have tried to run nix-shell with this code:

let
  mach-nix = import (builtins.fetchGit {
    url = "https://github.com/DavHau/mach-nix";
    ref = "refs/tags/3.5.0";
  }) {
    python = "python310";
    pypiData = builtins.fetchTarball "https://github.com/DavHau/pypi-deps-db/tarball/master";
  };
in
mach-nix.mkPythonShell {
  requirements = ''
    pdm
  '';
}

If I change python = "python310" to "python39", it works.

The wheel should work for all python3 versions:

https://pypi.org/project/pdm/#files

pypi-deps-db/wheel/1c.json

...
47439       "1.15.2": {
47440         "pdm-1.15.2-py3-none-any.whl": "1.14.0@pdm-1.14.0-py3-none-any.whl"
47441       },
...
ryanswrt commented 2 years ago

I am relatively sure this change fixes it: https://github.com/demin-dmitriy/mach-nix/commit/4b9e5e087a154c9903c533848907ea077007d6ee