1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 6 # dependencies 7 torch, 8 scipy, 9 10 # tests 11 pytestCheckHook, 12}: 13 14buildPythonPackage rec { 15 pname = "torchdiffeq"; 16 version = "0.2.5"; 17 format = "setuptools"; 18 19 src = fetchPypi { 20 inherit pname version; 21 hash = "sha256-tQ03YNE/0TjczqxlH0uAOW9E/vzr0DegM/7P6qnMEuc="; 22 }; 23 24 propagatedBuildInputs = [ 25 torch 26 scipy 27 ]; 28 29 pythonImportsCheck = [ "torchdiffeq" ]; 30 31 # no tests in sdist, no tags on git 32 doCheck = false; 33 34 nativeCheckInputs = [ pytestCheckHook ]; 35 36 meta = with lib; { 37 description = "Differentiable ODE solvers with full GPU support and O(1)-memory backpropagation"; 38 homepage = "https://github.com/rtqichen/torchdiffeq"; 39 license = licenses.mit; 40 teams = [ teams.tts ]; 41 }; 42}