python3Packages.linear_operator: init at 0.4.0

This commit is contained in:
Dmitry Kalinkin 2022-10-10 19:57:54 -04:00
parent 052341df02
commit cf5174b0ac
2 changed files with 48 additions and 0 deletions

View File

@ -0,0 +1,46 @@
{ 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 ];
};
}

View File

@ -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 { };