diff options
author | BioArchLinuxBot | 2023-07-08 12:03:52 +0000 |
---|---|---|
committer | BioArchLinuxBot | 2023-07-08 12:03:52 +0000 |
commit | 350923cacb56f85410d76e511567e7c9bc217448 (patch) | |
tree | b179d33f6ebf4ab936dc7a34dc7f0d1e2dc1f60b | |
parent | 461e0f570b5add0d0541d3cd27f8f4499927e6fb (diff) | |
download | aur-350923cacb56f85410d76e511567e7c9bc217448.tar.gz |
[lilac] updated to 1.30-2
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 19 | ||||
-rw-r--r-- | scipy-1.11.0-fixes.patch | 44 |
3 files changed, 62 insertions, 6 deletions
@@ -1,7 +1,7 @@ pkgbase = r-reticulate pkgdesc = Interface to 'Python' pkgver = 1.30 - pkgrel = 1 + pkgrel = 2 url = https://cran.r-project.org/package=reticulate arch = x86_64 license = Apache @@ -35,7 +35,10 @@ pkgbase = r-reticulate optdepends = r-rmarkdown optdepends = r-testthat source = https://cran.r-project.org/src/contrib/reticulate_1.30.tar.gz + source = scipy-1.11.0-fixes.patch md5sums = 9063282d659c73afbf9bcaec50878eb7 + md5sums = 4247ebf82b55d3bebfdd2f5235d082a7 sha256sums = ee8f8a3a90fa49faf802c345a23e103d897e40dadc5ec75bfb13ce06576017df + sha256sums = 943a11211e86181987e726e76801383bef4a433a82d86e953733e14b4e4a796a pkgname = r-reticulate @@ -5,8 +5,8 @@ _pkgname=reticulate _pkgver=1.30 pkgname=r-${_pkgname,,} -pkgver=${_pkgver//[:-]/.} -pkgrel=1 +pkgver=${_pkgver//-/.} +pkgrel=2 pkgdesc="Interface to 'Python'" arch=(x86_64) url="https://cran.r-project.org/package=${_pkgname}" @@ -46,9 +46,18 @@ optdepends=( r-rmarkdown r-testthat ) -source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz") -md5sums=('9063282d659c73afbf9bcaec50878eb7') -sha256sums=('ee8f8a3a90fa49faf802c345a23e103d897e40dadc5ec75bfb13ce06576017df') +source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz" + "scipy-1.11.0-fixes.patch") +md5sums=('9063282d659c73afbf9bcaec50878eb7' + '4247ebf82b55d3bebfdd2f5235d082a7') +sha256sums=('ee8f8a3a90fa49faf802c345a23e103d897e40dadc5ec75bfb13ce06576017df' + '943a11211e86181987e726e76801383bef4a433a82d86e953733e14b4e4a796a') + +prepare() { + cd "$_pkgname" + # Fix compatibility with python-scipy 1.11.0 and newer + patch -Np1 -i ../scipy-1.11.0-fixes.patch +} build() { mkdir -p build diff --git a/scipy-1.11.0-fixes.patch b/scipy-1.11.0-fixes.patch new file mode 100644 index 000000000000..f3698a38eb2f --- /dev/null +++ b/scipy-1.11.0-fixes.patch @@ -0,0 +1,44 @@ +diff --git a/NAMESPACE b/NAMESPACE +index 6f2d21e4..cde11ac7 100644 +--- a/NAMESPACE ++++ b/NAMESPACE +@@ -44,6 +44,7 @@ S3method(conditionCall,python.builtin.BaseException) + S3method(conditionMessage,python.builtin.BaseException) + S3method(dim,pandas.core.frame.DataFrame) + S3method(dim,pandas.core.series.Series) ++S3method(dim,scipy.sparse._base._spbase) + S3method(dim,scipy.sparse._base.spmatrix) + S3method(dim,scipy.sparse.base.spmatrix) + S3method(format,py_config) +@@ -56,6 +57,7 @@ S3method(length,python.builtin.dict) + S3method(length,python.builtin.list) + S3method(length,python.builtin.object) + S3method(length,python.builtin.tuple) ++S3method(length,scipy.sparse._base._spbase) + S3method(length,scipy.sparse._base.spmatrix) + S3method(length,scipy.sparse.base.spmatrix) + S3method(names,python.builtin.module) +@@ -97,6 +99,7 @@ S3method(py_to_r,scipy.sparse._base.spmatrix) + S3method(py_to_r,scipy.sparse._coo.coo_matrix) + S3method(py_to_r,scipy.sparse._csc.csc_matrix) + S3method(py_to_r,scipy.sparse._csr.csr_matrix) ++S3method(py_to_r,scipy.sparse._matrix.spmatrix) + S3method(py_to_r,scipy.sparse.base.spmatrix) + S3method(py_to_r,scipy.sparse.coo.coo_matrix) + S3method(py_to_r,scipy.sparse.csc.csc_matrix) +diff --git a/R/conversion.R b/R/conversion.R +index e819223c..e2d47ec6 100644 +--- a/R/conversion.R ++++ b/R/conversion.R +@@ -646,3 +646,11 @@ py_to_r.scipy.sparse._csc.csc_matrix <- py_to_r.scipy.sparse.csc.csc_matrix + py_to_r.scipy.sparse._csr.csr_matrix <- py_to_r.scipy.sparse.csr.csr_matrix + #' @export + py_to_r.scipy.sparse._coo.coo_matrix <- py_to_r.scipy.sparse.coo.coo_matrix ++ ++# updated locations for scipy 1.11.0 ++#' @export ++dim.scipy.sparse._base._spbase <- dim.scipy.sparse.base.spmatrix ++#' @export ++length.scipy.sparse._base._spbase <- length.scipy.sparse.base.spmatrix ++#' @export ++py_to_r.scipy.sparse._matrix.spmatrix <- py_to_r.scipy.sparse.base.spmatrix |