Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / botorch / default.nix
blob39ed52eb94290bc6a7823bed503907851846edb7
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , gpytorch
5 , linear_operator
6 , multipledispatch
7 , pyro-ppl
8 , setuptools
9 , setuptools-scm
10 , wheel
11 , torch
12 , scipy
13 , pytestCheckHook
16 buildPythonPackage rec {
17   pname = "botorch";
18   version = "0.9.3";
19   format = "pyproject";
21   src = fetchFromGitHub {
22     owner = "pytorch";
23     repo = pname;
24     rev = "refs/tags/v${version}";
25     hash = "sha256-d8EMmA499Zxyagkqx0JCKMZPwSH4LvBya+raD3v3iZU=";
26   };
28   nativeBuildInputs = [
29     setuptools
30     setuptools-scm
31     wheel
32   ];
34   propagatedBuildInputs = [
35     gpytorch
36     linear_operator
37     multipledispatch
38     pyro-ppl
39     scipy
40     torch
41   ];
43   SETUPTOOLS_SCM_PRETEND_VERSION = version;
45   checkInputs = [
46     pytestCheckHook
47   ];
48   pythonImportsCheck = [ "botorch" ];
50   meta = with lib; {
51     description = "Bayesian Optimization in PyTorch";
52     homepage = "https://botorch.org";
53     license = licenses.mit;
54     maintainers = with maintainers; [ veprbl ];
55   };