Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09-beta 44 lines 813 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, numpy 5, scipy 6, scikitlearn 7, pyaml 8, pytest 9}: 10 11buildPythonPackage rec { 12 pname = "scikit-optimize"; 13 version = "0.6"; 14 15 src = fetchFromGitHub { 16 owner = "scikit-optimize"; 17 repo = "scikit-optimize"; 18 rev = "v${version}"; 19 sha256 = "1srbb20k8ddhpcfxwdflapfh6xfyrd3dnclcg3bsfq1byrcmv0d4"; 20 }; 21 22 propagatedBuildInputs = [ 23 numpy 24 scipy 25 scikitlearn 26 pyaml 27 ]; 28 29 checkInputs = [ 30 pytest 31 ]; 32 33 # remove --ignore at next release > 0.6 34 checkPhase = '' 35 pytest skopt --ignore skopt/tests/test_searchcv.py 36 ''; 37 38 meta = with lib; { 39 description = "Sequential model-based optimization toolbox"; 40 homepage = "https://scikit-optimize.github.io/"; 41 license = licenses.bsd3; 42 maintainers = [ maintainers.costrouc ]; 43 }; 44}