DavHau / mach-nix

Create highly reproducible python environments
MIT License
862 stars 106 forks source link

resolver allows versions, not acceppted by pip (2.0.0b3 < 2.0.0) #191

Open DavHau opened 3 years ago

DavHau commented 3 years ago

The resolver picks tzlocal 2.0.0b3 for the following expression. But pip complains because it doesn't agree with 2.0.0b2<2.0.0.

let
  mach-nix = import (
    builtins.fetchGit {
      url = "https://github.com/DavHau/mach-nix/";
      ref = "refs/heads/conda-beta";
      rev = "c407c2e98cbfc847bd4c9c150a2337c9940bd2e5";
    }
  ) {
    python = "python37";
  };
  pyEnv = mach-nix.mkPython {
    requirements = ''
      pendulum==1.4.4
    '';
    providers._default = "wheel,sdist,nixpkgs";
  };
in
pyEnv
tomprince commented 3 years ago

I think this may be a duplicate of #232.