nixpkgs/pkgs/development/python-modules/gpy/default.nix
2017-10-27 21:34:42 +02:00

32 lines
832 B
Nix

{ stdenv, buildPythonPackage, fetchPypi
, numpy, scipy, six, paramz, nose, matplotlib, cython }:
buildPythonPackage rec {
pname = "GPy";
version = "1.8.4";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "38c1202f1790952b88c298224139ee5b14d4518e3ddc6186c60db2ece016d8c1";
};
# 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 ];
};
}