f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
42 lines
782 B
Nix
42 lines
782 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
|
|
# dependencies
|
|
torch,
|
|
scipy,
|
|
|
|
# tests
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "torchdiffeq";
|
|
version = "0.2.4";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-wOV8PIif7dp/I6YBXb/Nba5QcqBt1u0Q6CAMIAmEQEM=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
torch
|
|
scipy
|
|
];
|
|
|
|
pythonImportsCheck = [ "torchdiffeq" ];
|
|
|
|
# no tests in sdist, no tags on git
|
|
doCheck = false;
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
meta = with lib; {
|
|
description = "Differentiable ODE solvers with full GPU support and O(1)-memory backpropagation";
|
|
homepage = "https://github.com/rtqichen/torchdiffeq";
|
|
license = licenses.mit;
|
|
maintainers = teams.tts.members;
|
|
};
|
|
}
|