Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 29 lines 811 B view raw
1{ lib, buildPythonPackage, fetchFromGitHub, setuptools 2, numpy, scipy, gpy, emcee, nose }: 3 4buildPythonPackage rec { 5 pname = "GPyOpt"; 6 version = "unstable-2019-09-25"; 7 8 src = fetchFromGitHub { 9 repo = pname; 10 owner = "SheffieldML"; 11 rev = "249b8ff29c52c12ed867f145a627d529372022d8"; 12 sha256 = "1ywaw1kpdr7dv4s4cr7afmci86sw7w61178gs45b0lq08652zdlb"; 13 }; 14 15 doCheck = false; # requires several packages not available in Nix 16 17 checkInputs = [ nose ]; 18 19 checkPhase = "nosetests -v GPyOpt/testing"; 20 21 propagatedBuildInputs = [ setuptools numpy scipy gpy emcee ]; 22 23 meta = with lib; { 24 description = "Bayesian optimization toolbox in Python"; 25 homepage = "https://sheffieldml.github.io/GPyOpt"; 26 license = licenses.bsd3; 27 maintainers = with maintainers; [ bcdarwin ]; 28 }; 29}