17 buildPythonPackage rec {
22 disabled = pythonOlder "3.9";
24 src = fetchFromGitHub {
25 owner = "SheffieldML";
27 rev = "refs/tags/v${version}";
28 hash = "sha256-kggXePDKJcgw8qwLIBTxbwhiLw2H4dkx7082FguKP0Y=";
36 nativeBuildInputs = [ setuptools ];
37 buildInputs = [ cython ];
38 propagatedBuildInputs = [
45 nativeCheckInputs = [ pytestCheckHook ];
47 # Rebuild cython-generated .c files to ensure compatibility
49 for fn in $(find . -name '*.pyx'); do
50 echo $fn | sed 's/\.\.pyx$/\.c/' | xargs ${cython}/bin/cython -3
54 disabledTests = lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [
55 # Rounding difference break comparison
56 "TestGradientMultiOutputGPModel"
59 pythonImportsCheck = [ "GPy" ];
62 description = "Gaussian process framework in Python";
63 homepage = "https://sheffieldml.github.io/GPy";
64 changelog = "https://github.com/SheffieldML/GPy/releases/tag/v${version}";
65 license = licenses.bsd3;
66 maintainers = with maintainers; [ bcdarwin ];