fetchFromGitHub vs fetchPypi/fetchgit

I’ve seen that in a number of Python modules fetchPypi instead of fetchFromGitHub or fetchgit is used. In most cases, PyPi archives have tests stripped, so it seems to conflict with the general advice of running some kind of tests if available. So which option is actually recommended and why?

An example of such package is scikitimage: https://github.com/NixOS/nixpkgs/blob/c784a303da10159af114272537254dc5171f6e2c/pkgs/development/python-modules/scikit-image/default.nix

1 Like

The option which allows for more testing is preferred. :slight_smile:

3 Likes

Thanks for the answer! I initially thought that the reason might be something like caching. Is fetchFromGitHub relatively newer than fetchPypi?

No, they are just alternate helpers. Choose the tool which fits the problem. :slight_smile: