diff options
Diffstat (limited to 'pkgs/development/python-modules/gpy/default.nix')
-rw-r--r-- | pkgs/development/python-modules/gpy/default.nix | 47 |
1 files changed, 28 insertions, 19 deletions
diff --git a/pkgs/development/python-modules/gpy/default.nix b/pkgs/development/python-modules/gpy/default.nix index 33da65d155cc2..9bca05da8e5ab 100644 --- a/pkgs/development/python-modules/gpy/default.nix +++ b/pkgs/development/python-modules/gpy/default.nix @@ -1,33 +1,38 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pytestCheckHook -, setuptools -, numpy -, scipy -, six -, paramz -, matplotlib -, cython +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pytestCheckHook, + setuptools, + numpy, + scipy, + six, + paramz, + matplotlib, + cython, }: buildPythonPackage rec { pname = "gpy"; - version = "1.13.0"; + version = "1.13.2"; pyproject = true; disabled = pythonOlder "3.9"; - # 1.13.0 not on PyPI yet src = fetchFromGitHub { owner = "SheffieldML"; repo = "GPy"; - rev = "refs/tags/v.${version}"; - hash = "sha256-2HKKKBD/JFSeLQGvvgObxqxv9IHEKFnpaejdKbYZbmY="; + rev = "refs/tags/v${version}"; + hash = "sha256-kggXePDKJcgw8qwLIBTxbwhiLw2H4dkx7082FguKP0Y="; }; + pythonRelaxDeps = [ + "paramz" + "scipy" + ]; + nativeBuildInputs = [ setuptools ]; buildInputs = [ cython ]; propagatedBuildInputs = [ @@ -46,14 +51,18 @@ buildPythonPackage rec { done ''; + disabledTests = lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [ + # Rounding difference break comparison + "TestGradientMultiOutputGPModel" + ]; + pythonImportsCheck = [ "GPy" ]; meta = with lib; { description = "Gaussian process framework in Python"; homepage = "https://sheffieldml.github.io/GPy"; - changelog = "https://github.com/SheffieldML/GPy/releases/tag/v.${version}"; + changelog = "https://github.com/SheffieldML/GPy/releases/tag/v${version}"; license = licenses.bsd3; maintainers = with maintainers; [ bcdarwin ]; - broken = stdenv.isDarwin; # See inscrutable error message here: https://github.com/NixOS/nixpkgs/pull/107653#issuecomment-751527547 }; } |