{ lib, buildPythonPackage, fetchFromGitHub, # build-system setuptools, setuptools-scm, # dependencies jaxtyping, linear-operator, mpmath, scikit-learn, scipy, torch, # tests pytestCheckHook, }: buildPythonPackage rec { pname = "gpytorch"; version = "1.14.2"; pyproject = true; src = fetchFromGitHub { owner = "cornellius-gp"; repo = "gpytorch"; tag = "v${version}"; hash = "sha256-yDIGiA7q4e6T7SdnO+ALcc3ezmJK964T5Nn48+NGJV8="; }; build-system = [ setuptools setuptools-scm ]; dependencies = [ jaxtyping linear-operator mpmath scikit-learn scipy torch ]; nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "gpytorch" ]; disabledTests = [ # AssertionError on number of warnings emitted "test_deprecated_methods" # flaky numerical tests "test_classification_error" "test_matmul_matrix_broadcast" "test_optimization_optimal_error" # https://github.com/cornellius-gp/gpytorch/issues/2396 "test_t_matmul_matrix" ]; meta = { description = "Highly efficient and modular implementation of Gaussian Processes, with GPU acceleration"; homepage = "https://gpytorch.ai"; downloadPage = "https://github.com/cornellius-gp/gpytorch"; changelog = "https://github.com/cornellius-gp/gpytorch/releases/tag/${src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ veprbl ]; }; }