Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions pkgs/development/ocaml-modules/torch/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
, ppx_sexp_conv
, sexplib
, stdio
, pytorch
, torch
}:

buildDunePackage rec {
Expand All @@ -37,16 +37,16 @@ buildDunePackage rec {
ctypes
npy
ocaml-compiler-libs
pytorch
pytorch.dev
ppx_custom_printf
ppx_expect
ppx_sexp_conv
sexplib
stdio
torch
torch.dev
];

preBuild = "export LIBTORCH=${pytorch.dev}/";
preBuild = "export LIBTORCH=${torch.dev}/";

doCheck = !stdenv.isAarch64;
checkPhase = "dune runtest";
Expand All @@ -56,6 +56,6 @@ buildDunePackage rec {
description = "Ocaml bindings to Pytorch";
maintainers = [ maintainers.bcdarwin ];
license = licenses.asl20;
broken = lib.versionAtLeast pytorch.version "1.11";
broken = lib.versionAtLeast torch.version "1.11";
};
}
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/boxx/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
, fn
, pyopengl
, seaborn
, pytorch
, torch
, pythonOlder
, torchvision
}:
Expand Down Expand Up @@ -43,7 +43,7 @@ buildPythonPackage rec {

checkInputs = [
xvfb-run
pytorch
torch
torchvision
];

Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/coqui-trainer/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

, coqpit
, fsspec
, pytorch-bin
, torch-bin
, tensorboardx
, protobuf

Expand All @@ -33,7 +33,7 @@ buildPythonPackage {
propagatedBuildInputs = [
coqpit
fsspec
pytorch-bin
torch-bin
soundfile
tensorboardx
protobuf
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/deepwave/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytorch
, torch
, ninja
, scipy
, which
Expand Down Expand Up @@ -48,7 +48,7 @@ buildPythonPackage rec {
export HOME=$(mktemp -d)
'';

propagatedBuildInputs = [ pytorch pybind11 ];
propagatedBuildInputs = [ torch pybind11 ];

checkInputs = [
which
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/elegy/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
, lib
, poetry
, pytestCheckHook
, pytorch
, torch
, pyyaml
, sh
, tables
Expand Down Expand Up @@ -66,7 +66,7 @@ buildPythonPackage rec {

checkInputs = [
pytestCheckHook
pytorch
torch
sh
tensorflow
];
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/ezyrb/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
, scipy
, matplotlib
, scikit-learn
, pytorch
, torch
, pytestCheckHook
}:

Expand All @@ -32,7 +32,7 @@ buildPythonPackage rec {
scipy
matplotlib
scikit-learn
pytorch
torch
];

checkInputs = [
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/functorch/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
, ninja
, pytestCheckHook
, python
, pytorch
, torch
, pybind11
, which
}:
Expand All @@ -26,7 +26,7 @@ buildPythonPackage rec {
# `setup.py` imports `torch.utils.cpp_extension`.
nativeBuildInputs = [
ninja
pytorch
torch
which
];

Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/ignite/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
, matplotlib
, mock
, packaging
, pytorch
, torch
, scikit-learn
, tqdm
}:
Expand All @@ -25,7 +25,7 @@ buildPythonPackage rec {
};

checkInputs = [ pytestCheckHook matplotlib mock pytest-xdist torchvision ];
propagatedBuildInputs = [ packaging pytorch scikit-learn tqdm ];
propagatedBuildInputs = [ packaging torch scikit-learn tqdm ];

# runs succesfully in 3.9, however, async isn't correctly closed so it will fail after test suite.
doCheck = pythonOlder "3.9";
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/monai/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
, ignite
, numpy
, pybind11
, pytorch
, torch
, which
}:

Expand All @@ -33,7 +33,7 @@ buildPythonPackage rec {

nativeBuildInputs = [ ninja which ];
buildInputs = [ pybind11 ];
propagatedBuildInputs = [ numpy pytorch ignite ];
propagatedBuildInputs = [ numpy torch ignite ];

BUILD_MONAI = 1;

Expand Down
1 change: 0 additions & 1 deletion pkgs/development/python-modules/py-deprecate/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
, fetchFromGitHub
, pytestCheckHook
, scikit-learn
, pytorch
}:

let
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/pymanopt/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
, buildPythonPackage
, numpy
, scipy
, pytorch
, torch
, autograd
, nose2
, matplotlib
Expand All @@ -21,7 +21,7 @@ buildPythonPackage rec {
sha256 = "sha256-dqyduExNgXIbEFlgkckaPfhLFSVLqPgwAOyBUdowwiQ=";
};

propagatedBuildInputs = [ numpy scipy pytorch ];
propagatedBuildInputs = [ numpy scipy torch ];
checkInputs = [ nose2 autograd matplotlib tensorflow ];

checkPhase = ''
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/pyro-ppl/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
, pillow
, pyro-api
, pythonOlder
, pytorch
, torch
, scikit-learn
, seaborn
, torchvision
Expand All @@ -32,7 +32,7 @@ buildPythonPackage rec {

propagatedBuildInputs = [
pyro-api
pytorch
torch
networkx
opt-einsum
tqdm
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/pytorch-lightning/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
, fsspec
, packaging
, pytestCheckHook
, pytorch
, torch
, pyyaml
, tensorboard
, torchmetrics
Expand All @@ -29,7 +29,7 @@ buildPythonPackage rec {
packaging
future
fsspec
pytorch
torch
pyyaml
tensorboard
torchmetrics
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
, numpy
, scikit-learn
, pytestCheckHook
, pytorch
, torch
, torchvision
, tqdm
, faiss
Expand All @@ -26,7 +26,7 @@ buildPythonPackage rec {

propagatedBuildInputs = [
numpy
pytorch
torch
scikit-learn
torchvision
tqdm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
, onnx
, packaging
, pytestCheckHook
, pytorch
, torch
, torchvision
, typing-extensions
}:
Expand All @@ -21,7 +21,7 @@ buildPythonPackage rec {
sha256 = "sha256-w4WSEgNLdVLDnKS4kzJBK9BkrrGzbk2aCIhk4HCM/Bk=";
};

propagatedBuildInputs = [ numpy packaging pytorch typing-extensions ];
propagatedBuildInputs = [ numpy packaging torch typing-extensions ];

checkInputs = [ onnx pytestCheckHook torchvision ];

Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/pywick/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
, pandas
, pillow
, six
, pytorch
, torch
, torchvision
, tqdm
, lib
Expand All @@ -28,7 +28,7 @@ buildPythonPackage rec {
};

propagatedBuildInputs = [
h5py hickle numpy pandas pillow six pytorch torchvision tqdm
h5py hickle numpy pandas pillow six torch torchvision tqdm
];

checkInputs = [ pytest ];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
, sparse
# Optional inputs
, withTorch ? true
, pytorch
, torch
# Check Inputs
, pytestCheckHook
, ddt
Expand Down Expand Up @@ -41,7 +41,7 @@ buildPythonPackage rec {
qiskit-terra
scikit-learn
sparse
] ++ lib.optional withTorch pytorch;
] ++ lib.optional withTorch torch;

doCheck = false; # TODO: enable. Tests fail on unstable due to some multithreading issue?
checkInputs = [
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/rising/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
, pytest-cov
, dill
, numpy
, pytorch
, torch
, threadpoolctl
, tqdm
}:
Expand All @@ -24,7 +24,7 @@ buildPythonPackage rec {
sha256 = "15wYWToXRae1cMpHWbJwzAp0THx6ED9ixQgL+n1v9PI=";
};

propagatedBuildInputs = [ numpy pytorch threadpoolctl tqdm ];
propagatedBuildInputs = [ numpy torch threadpoolctl tqdm ];
checkInputs = [ dill pytest-cov pytestCheckHook ];

disabledTests = [ "test_affine" ]; # deprecated division operator '/'
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/skorch/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
, flaky
, numpy
, pandas
, pytorch
, torch
, scikit-learn
, scipy
, tabulate
Expand All @@ -23,7 +23,7 @@ buildPythonPackage rec {
sha256 = "b35cb4e50045742f0ffcfad33044af691d5d36b50212573753a804483a947ca9";
};

propagatedBuildInputs = [ numpy pytorch scikit-learn scipy tabulate tqdm ];
propagatedBuildInputs = [ numpy torch scikit-learn scipy tabulate tqdm ];
checkInputs = [ pytest pytest-cov flaky pandas pytestCheckHook ];

disabledTests = [
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/slicer/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
, isPy27
, pytestCheckHook
, pandas
, pytorch
, torch
, scipy
}:

Expand All @@ -18,7 +18,7 @@ buildPythonPackage rec {
sha256 = "f5d5f7b45f98d155b9c0ba6554fa9770c6b26d5793a3e77a1030fb56910ebeec";
};

checkInputs = [ pytestCheckHook pandas pytorch scipy ];
checkInputs = [ pytestCheckHook pandas torch scipy ];

disabledTests = [
# IndexError: too many indices for array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
, fetchPypi
, buildPythonPackage
, dataclasses
, pytorch
, torch
, pythonOlder
, spacy
, spacy-alignments
Expand All @@ -24,7 +24,7 @@ buildPythonPackage rec {
};

propagatedBuildInputs = [
pytorch
torch
spacy
spacy-alignments
srsly
Expand Down
Loading