nixpkgs/pkgs/development/python-modules/gpy/default.nix
2018-10-13 09:50:15 +02:00

31 lines
832 B
Nix

{ stdenv, buildPythonPackage, fetchPypi
, numpy, scipy, six, paramz, nose, matplotlib, cython }:
buildPythonPackage rec {
pname = "GPy";
version = "1.9.5";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "97519bea69e7d7a703d9575c31d68a7c6f974ae125ee9d4a3e1fb510eadfb97e";
};
# running tests produces "ImportError: cannot import name 'linalg_cython'"
# even though Cython has run
checkPhase = "nosetests -d";
doCheck = false;
checkInputs = [ nose ];
buildInputs = [ cython ];
propagatedBuildInputs = [ numpy scipy six paramz matplotlib ];
meta = with stdenv.lib; {
description = "Gaussian process framework in Python";
homepage = https://sheffieldml.github.io/GPy;
license = licenses.bsd3;
maintainers = with maintainers; [ bcdarwin ];
};
}