mach-nix icon indicating copy to clipboard operation
mach-nix copied to clipboard

package pdm is not available in python310 but python39

Open nasyxx opened this issue 2 years ago • 1 comments

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": "[email protected]"
47441       },
...

nasyxx avatar Jun 14 '22 02:06 nasyxx

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

ryanswrt avatar Jul 29 '22 05:07 ryanswrt