aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2026-08-04 06:43:20 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2026-08-04 20:10:23 +0000
commit3a08ec402a1887cc54cb8cc262ab311e891f94ac (patch)
tree631a973f5d02fef131005f9744f1a4f831fd5a91
parent3ff890205458c821c6d202b06ad87037bac3b2ec (diff)
devel/py-rdata: New port: Read R datasets from Python
-rw-r--r--devel/Makefile1
-rw-r--r--devel/py-rdata/Makefile26
-rw-r--r--devel/py-rdata/distinfo3
-rw-r--r--devel/py-rdata/files/patch-pyproject.toml16
-rw-r--r--devel/py-rdata/pkg-descr3
5 files changed, 49 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 8b600004b5eb..8258e0a6daeb 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -6093,6 +6093,7 @@
SUBDIR += py-ratelimiter
SUBDIR += py-raven
SUBDIR += py-rchitect
+ SUBDIR += py-rdata
SUBDIR += py-re-assert
SUBDIR += py-readerwriterlock
SUBDIR += py-readme-renderer
diff --git a/devel/py-rdata/Makefile b/devel/py-rdata/Makefile
new file mode 100644
index 000000000000..7f4834775ea4
--- /dev/null
+++ b/devel/py-rdata/Makefile
@@ -0,0 +1,26 @@
+PORTNAME= rdata
+DISTVERSION= 1.1.0
+CATEGORIES= devel python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Read R datasets from Python
+WWW= https://rdata.readthedocs.io
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=61.0:devel/py-setuptools@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>0:math/py-numpy@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pandas>0:math/py-pandas@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}typing-extensions>4.4:devel/py-typing-extensions@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}xarray>0:devel/py-xarray@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= pep517 autoplist concurrent
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-rdata/distinfo b/devel/py-rdata/distinfo
new file mode 100644
index 000000000000..346db3d6c3ed
--- /dev/null
+++ b/devel/py-rdata/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1785732668
+SHA256 (rdata-1.1.0.tar.gz) = 37c8b19e8be82d7d7acb36c6623bfeb7ab1d95d9380ec00a6c063f88b1f50e3a
+SIZE (rdata-1.1.0.tar.gz) = 106564
diff --git a/devel/py-rdata/files/patch-pyproject.toml b/devel/py-rdata/files/patch-pyproject.toml
new file mode 100644
index 000000000000..b4d9ebff18f1
--- /dev/null
+++ b/devel/py-rdata/files/patch-pyproject.toml
@@ -0,0 +1,16 @@
+-- Make pyproject.toml valid for the setuptools version in the FreeBSD
+-- ports tree. Expand the short-string license form to PEP-621 {text = "..."}
+-- and remove the license-files key that older setuptools does not accept.
+
+--- pyproject.toml.orig 2026-08-03 15:45:26 UTC
++++ pyproject.toml
+@@ -3,8 +3,7 @@ requires-python = ">=3.11"
+ description = "Read R datasets from Python."
+ readme = "README.rst"
+ requires-python = ">=3.11"
+-license = "MIT"
+-license-files = [ "LICENSE" ]
++license = {text = "MIT"}
+ keywords = [
+ "rdata",
+ "r",
diff --git a/devel/py-rdata/pkg-descr b/devel/py-rdata/pkg-descr
new file mode 100644
index 000000000000..f8b18ca603e4
--- /dev/null
+++ b/devel/py-rdata/pkg-descr
@@ -0,0 +1,3 @@
+Read R datasets from Python.
+
+It parses R .rda and .rds files into pandas-compatible data structures.