python312Packages.torch-bin: sort inputs correctly

This commit is contained in:
Gaetan Lepage
2024-09-24 22:32:25 +02:00
committed by Gaétan Lepage
parent 2c6cd713f2
commit 252b4e6e86
+24 -17
View File
@@ -1,27 +1,34 @@
{
lib,
stdenv,
buildPythonPackage,
autoAddDriverRunpath,
fetchurl,
python,
pythonAtLeast,
buildPythonPackage,
pythonOlder,
pythonAtLeast,
fetchurl,
# nativeBuildInputs
addDriverRunpath,
callPackage,
cudaPackages,
future,
numpy,
autoAddDriverRunpath,
autoPatchelfHook,
# buildInputs
cudaPackages,
# dependencies
filelock,
future,
jinja2,
networkx,
numpy,
pyyaml,
requests,
setuptools,
typing-extensions,
sympy,
jinja2,
networkx,
filelock,
typing-extensions,
triton,
callPackage,
}:
let
@@ -44,8 +51,8 @@ buildPythonPackage {
nativeBuildInputs = lib.optionals stdenv.isLinux [
addDriverRunpath
autoPatchelfHook
autoAddDriverRunpath
autoPatchelfHook
];
buildInputs = lib.optionals stdenv.isLinux (
@@ -77,16 +84,16 @@ buildPythonPackage {
];
dependencies = [
filelock
future
jinja2
networkx
numpy
pyyaml
requests
setuptools
typing-extensions
sympy
jinja2
networkx
filelock
typing-extensions
] ++ lib.optionals (stdenv.isLinux && stdenv.isx86_64) [ triton ];
postInstall = ''