python3Packages.torch{,-bin}: rename from pytorch{,-bin}

The proper name for a python package is the one in the setuptools
setup() call, which can also be seen on pypi.

Correct: https://pypi.org/project/torch/
Wrong: https://pypi.org/project/pytorch/

Includes a treewide rename of the attribute and creates aliases for the
old name.
This commit is contained in:
Martin Weinelt
2022-08-30 17:46:57 +02:00
parent 70c3bfea57
commit afe8ee8b47
46 changed files with 103 additions and 99 deletions
@@ -1,7 +1,7 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytorch
, torch
, ninja
, scipy
, which
@@ -48,7 +48,7 @@ buildPythonPackage rec {
export HOME=$(mktemp -d)
'';
propagatedBuildInputs = [ pytorch pybind11 ];
propagatedBuildInputs = [ torch pybind11 ];
checkInputs = [
which