python3Packages.bayesian-optimization: 1.2.0 -> 1.4.3

Diff: https://github.com/bayesian-optimization/BayesianOptimization/compare/1.2.0...v1.4.3
This commit is contained in:
natsukium 2023-05-20 19:00:16 +09:00
parent f9b46deadc
commit 2a8c40ef77
No known key found for this signature in database
GPG Key ID: 9EA45A31DB994C53

View File

@ -4,46 +4,31 @@
, fetchFromGitHub
, scikit-learn
, scipy
, colorama
, pytestCheckHook
, isPy27
, fetchpatch
, pythonOlder
}:
buildPythonPackage rec {
pname = "bayesian-optimization";
version = "1.2.0";
disabled = isPy27;
version = "1.4.3";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "fmfn";
owner = "bayesian-optimization";
repo = "BayesianOptimization";
rev = version;
sha256 = "01mg9npiqh1qmq5ldnbpjmr8qkiw827msiv3crpkhbj4bdzasbfm";
rev = "refs/tags/v${version}";
hash = "sha256-Bp/ZhVSW5lTGwnsd/doOXu++Gxw/51owCfMm96Qmgd4=";
};
propagatedBuildInputs = [
scikit-learn
scipy
];
patches = [
# TypeError with scipy >= 1.8
# https://github.com/fmfn/BayesianOptimization/issues/300
(fetchpatch {
url = "https://github.com/fmfn/BayesianOptimization/commit/b4e09a25842985a4a0acea0c0f5c8789b7be125e.patch";
hash = "sha256-PfcifCFd4GRNTA+4+T+6A760QAgyZxhDCTyzNn2crdM=";
name = "scipy_18_fix.patch";
})
colorama
];
nativeCheckInputs = [ pytestCheckHook ];
disabledTests = [
# New sklearn broke one test
# https://github.com/fmfn/BayesianOptimization/issues/243
"test_suggest_with_one_observation"
];
pythonImportsCheck = [ "bayes_opt" ];
meta = with lib; {
@ -51,7 +36,7 @@ buildPythonPackage rec {
description = ''
A Python implementation of global optimization with gaussian processes
'';
homepage = "https://github.com/fmfn/BayesianOptimization";
homepage = "https://github.com/bayesian-optimization/BayesianOptimization";
license = licenses.mit;
maintainers = [ maintainers.juliendehos ];
};