summaryrefslogtreecommitdiff
path: root/math/py-pyreadr/files/patch-pyreadr-librdata.pxd
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2021-07-14 23:48:06 +0800
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2021-07-15 00:09:35 +0800
commit3482259da6b939bedcde374ce94d3833a333a748 (patch)
treed1ed56ddecafbc3508b64b6839ee0c7d6a339ca6 /math/py-pyreadr/files/patch-pyreadr-librdata.pxd
parentdevel/py-poetry2setup: Add py-poetry2setup 1.0.0 (diff)
math/py-pyreadr: Add py-pyreadr 0.4.2
pyreadr is a python package to read and write R RData and Rds files into/from pandas dataframes. It does not need to have R or other external dependencies installed. WWW: https://github.com/ofajardo/pyreadr
Diffstat (limited to 'math/py-pyreadr/files/patch-pyreadr-librdata.pxd')
-rw-r--r--math/py-pyreadr/files/patch-pyreadr-librdata.pxd20
1 files changed, 20 insertions, 0 deletions
diff --git a/math/py-pyreadr/files/patch-pyreadr-librdata.pxd b/math/py-pyreadr/files/patch-pyreadr-librdata.pxd
new file mode 100644
index 000000000000..7b09086fc162
--- /dev/null
+++ b/math/py-pyreadr/files/patch-pyreadr-librdata.pxd
@@ -0,0 +1,20 @@
+--- pyreadr/librdata.pxd.orig 2020-12-09 08:50:11 UTC
++++ pyreadr/librdata.pxd
+@@ -11,7 +11,7 @@ cdef extern from '<sys/types.h>':
+ cdef extern from 'Python.h':
+ object PyByteArray_FromStringAndSize(const char *string, Py_ssize_t len)
+
+-cdef extern from 'libs/librdata/src/rdata.h':
++cdef extern from '<rdata.h>':
+
+ cdef enum rdata_type_t 'rdata_type_e':
+ RDATA_TYPE_STRING
+@@ -128,7 +128,7 @@ cdef extern from 'libs/librdata/src/rdata.h':
+ rdata_error_t rdata_end_table(rdata_writer_t *writer, int32_t row_count, const char *datalabel);
+ rdata_error_t rdata_end_file(rdata_writer_t *writer);
+
+-cdef extern from 'libs/librdata/src/rdata_io_unistd.h':
++cdef extern from '<rdata_io_unistd.h>':
+ cdef struct rdata_unistd_io_ctx_t 'rdata_unistd_io_ctx_s':
+ int fd
+