diff --git a/pkgs/development/python-modules/gpy/default.nix b/pkgs/development/python-modules/gpy/default.nix new file mode 100644 index 000000000000..0bdc7247b3d5 --- /dev/null +++ b/pkgs/development/python-modules/gpy/default.nix @@ -0,0 +1,31 @@ +{ stdenv, buildPythonPackage, fetchPypi +, numpy, scipy, six, paramz, nose, matplotlib, cython }: + +buildPythonPackage rec { + pname = "GPy"; + version = "1.7.7"; + name = "${pname}-${version}"; + + src = fetchPypi { + inherit pname version; + sha256 = "1b4siirlkqic1lsn9bi9mnp8fpbpw1ijwv0z2i6r2zdrk3d6szs1"; + }; + + # 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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index fce88250970e..7c6cdcd5faaf 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6224,6 +6224,8 @@ in { ''; }; + gpy = callPackage ../development/python-modules/gpy { }; + gitdb = buildPythonPackage rec { name = "gitdb-0.6.4";