diff options
author | Julien Dehos <dehos@univ-littoral.fr> | 2020-02-13 13:31:08 +0100 |
---|---|---|
committer | Jon <jonringer@users.noreply.github.com> | 2020-02-17 19:57:30 -0800 |
commit | 60c4596dcbc2be668274f15f45a856f5e721fa14 (patch) | |
tree | 05fc65b5579763d301dc19e93d84df576ee124a2 /pkgs/development/python-modules/bayesian-optimization | |
parent | fdcb86de65f502c73e9edcbe3c14b9a7804949ee (diff) |
pythonPackages.bayesian-optimization: init at 1.0.1
Diffstat (limited to 'pkgs/development/python-modules/bayesian-optimization')
-rw-r--r-- | pkgs/development/python-modules/bayesian-optimization/default.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/bayesian-optimization/default.nix b/pkgs/development/python-modules/bayesian-optimization/default.nix new file mode 100644 index 0000000000000..1f1d33fe329e9 --- /dev/null +++ b/pkgs/development/python-modules/bayesian-optimization/default.nix @@ -0,0 +1,37 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, python +, scikitlearn +, scipy +, pytest +}: + +buildPythonPackage rec { + pname = "bayesian-optimization"; + version = "1.0.1"; + + src = fetchFromGitHub { + owner = "fmfn"; + repo = "BayesianOptimization"; + rev = "v${version}"; + sha256 = "07sqymg6k5512k7wq4kbp7rsrkb4g90n0ck1f0b9s6glyfpcy4pq"; + }; + + 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 ]; + }; +} |