lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

python3Packages.fetchPypi: support wheels where dist & python differ

This introduces the `dist` argument to the `computeWheelUrl`, that
allows the distribution format in the path to differ from the python
version.

A wheel can be py3 and still have their file below the py2.py3 dist url.

+2 -2
+2 -2
pkgs/development/interpreters/python/fetchpypi.nix
··· 5 5 6 6 let 7 7 computeUrl = {format ? "setuptools", ... } @attrs: let 8 - computeWheelUrl = {pname, version, python ? "py2.py3", abi ? "none", platform ? "any"}: 8 + computeWheelUrl = {pname, version, dist ? "py2.py3", python ? "py2.py3", abi ? "none", platform ? "any"}: 9 9 # Fetch a wheel. By default we fetch an universal wheel. 10 10 # See https://www.python.org/dev/peps/pep-0427/#file-name-convention for details regarding the optional arguments. 11 - "https://files.pythonhosted.org/packages/${python}/${builtins.substring 0 1 pname}/${pname}/${pname}-${version}-${python}-${abi}-${platform}.whl"; 11 + "https://files.pythonhosted.org/packages/${dist}/${builtins.substring 0 1 pname}/${pname}/${pname}-${version}-${python}-${abi}-${platform}.whl"; 12 12 13 13 computeSourceUrl = {pname, version, extension ? "tar.gz"}: 14 14 # Fetch a source tarball.