depot/third_party/nixpkgs/pkgs/development/python-modules/bayesian-optimization/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

37 lines
742 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, python
, scikitlearn
, scipy
, pytest
}:
buildPythonPackage rec {
pname = "bayesian-optimization";
version = "1.1.0";
src = fetchFromGitHub {
owner = "fmfn";
repo = "BayesianOptimization";
rev = "v${version}";
sha256 = "0ylip9xdi0cjzmdayxxpazdfaa9dl0sdcl2qsfn3p0cipj59bdvd";
};
propagatedBuildInputs = [
scikitlearn
scipy
];
checkInputs = [ pytest ];
checkPhase = ''
pytest tests
'';
meta = with lib; {
description = "A Python implementation of global optimization with gaussian processes";
homepage = "https://github.com/fmfn/BayesianOptimization";
license = licenses.mit;
maintainers = [ maintainers.juliendehos ];
};
}