mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-22 13:08:39 +03:00
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:
parent
f9b46deadc
commit
2a8c40ef77
@ -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 ];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user