Commit cf5174b0 authored by Dmitry Kalinkin's avatar Dmitry Kalinkin
Browse files

python3Packages.linear_operator: init at 0.4.0

parent 052341df
Loading
Loading
Loading
Loading
+46 −0
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchFromGitHub
, scipy
, torch
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "linear_operator";
  version = "0.4.0";
  format = "pyproject";

  src = fetchFromGitHub {
    owner = "cornellius-gp";
    repo = pname;
    rev = "v${version}";
    hash = "sha256-0f3F3k3xJACbx42jtwsAmjZwPAOfLywZs8VOrwWicc4=";
  };

  postPatch = ''
    substituteInPlace setup.py \
      --replace 'find_version("linear_operator", "version.py")' \"$version\"
  '';

  propagatedBuildInputs = [
    scipy
    torch
  ];

  checkInputs = [
    pytestCheckHook
  ];
  pythonImportsCheck = [ "linear_operator" ];
  disabledTests = [
    # flaky numerical tests
    "test_svd"
  ];

  meta = with lib; {
    description = "A LinearOperator implementation to wrap the numerical nuts and bolts of GPyTorch";
    homepage = "https://github.com/cornellius-gp/linear_operator/";
    license = licenses.mit;
    maintainers = with maintainers; [ veprbl ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -5672,6 +5672,8 @@ self: super: with self; {

  limnoria = callPackage ../development/python-modules/limnoria { };

  linear_operator = callPackage ../development/python-modules/linear_operator { };

  linecache2 = callPackage ../development/python-modules/linecache2 { };

  lineedit = callPackage ../development/python-modules/lineedit { };