19 buildPythonPackage rec {
24 src = fetchFromGitHub {
25 owner = "google-research";
27 rev = "refs/tags/v${version}";
28 hash = "sha256-D0p2tL/VvkouXrXfRhMuCq8wMtzeoBTppWEG5vM1qCo=";
32 substituteInPlace setup.py \
33 --replace "numpy==1.19.*" "numpy" \
34 --replace "scipy==1.5.*" "scipy"
41 propagatedBuildInputs = [
49 pythonImportsCheck = [ "torchsde" ];
56 # RuntimeError: a view of a leaf Variable that requires grad is being used in an in-place operation.
61 changelog = "https://github.com/google-research/torchsde/releases/tag/v${version}";
62 description = "Differentiable SDE solvers with GPU support and efficient sensitivity analysis";
63 homepage = "https://github.com/google-research/torchsde";
64 license = licenses.asl20;
65 maintainers = teams.tts.members;