mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-21 20:34:06 +00:00
python3Packages.linear_operator: init at 0.4.0
This commit is contained in:
parent
052341df02
commit
cf5174b0ac
46
pkgs/development/python-modules/linear_operator/default.nix
Normal file
46
pkgs/development/python-modules/linear_operator/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user