nixpkgs/pkgs/development/python-modules/botorch/default.nix
2023-05-10 17:13:24 -04:00

52 lines
901 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, gpytorch
, linear_operator
, multipledispatch
, pyro-ppl
, setuptools-scm
, torch
, scipy
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "botorch";
version = "0.8.5";
format = "pyproject";
src = fetchFromGitHub {
owner = "pytorch";
repo = pname;
rev = "v${version}";
hash = "sha256-VcNHgfk8OfLJseQxHksycWuCPCudCtOdcRV0XnxHSfU=";
};
buildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
gpytorch
linear_operator
multipledispatch
pyro-ppl
scipy
torch
];
SETUPTOOLS_SCM_PRETEND_VERSION = version;
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "botorch" ];
meta = with lib; {
description = "Bayesian Optimization in PyTorch";
homepage = "https://botorch.org";
license = licenses.mit;
maintainers = with maintainers; [ veprbl ];
};
}