Loading pkgs/development/python-modules/linear_operator/default.nix 0 → 100644 +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 ]; }; } pkgs/top-level/python-packages.nix +2 −0 Original line number Diff line number Diff line Loading @@ -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 Loading
pkgs/development/python-modules/linear_operator/default.nix 0 → 100644 +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 ]; }; }
pkgs/top-level/python-packages.nix +2 −0 Original line number Diff line number Diff line Loading @@ -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