nixpkgs/pkgs/development/python-modules/botorch/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

57 lines
954 B
Nix
Raw Normal View History

2022-10-10 23:59:33 +00:00
{ lib
, buildPythonPackage
, fetchFromGitHub
, gpytorch
, linear_operator
, multipledispatch
, pyro-ppl
, setuptools
2022-10-10 23:59:33 +00:00
, setuptools-scm
, wheel
2022-10-10 23:59:33 +00:00
, torch
, scipy
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "botorch";
version = "0.9.2";
2022-10-10 23:59:33 +00:00
format = "pyproject";
src = fetchFromGitHub {
owner = "pytorch";
repo = pname;
rev = "v${version}";
hash = "sha256-8obS+qMQwepKUxPkMbufR/SaacYekl6FA6t6XW6llA4=";
2022-10-10 23:59:33 +00:00
};
nativeBuildInputs = [
setuptools
2022-10-10 23:59:33 +00:00
setuptools-scm
wheel
2022-10-10 23:59:33 +00:00
];
2022-10-10 23:59:33 +00:00
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 ];
};
}