Skip to content

Commit 31425e7

Browse files
committed
databases/py-datafusion: Add py-datafusion 48.0.0
This is a Python library that binds to Apache Arrow in-memory query engine DataFusion. DataFusion's Python bindings can be used as a foundation for building new data systems in Python. Here are some examples: - Dask SQL uses DataFusion's Python bindings for SQL parsing, query planning, and logical plan optimizations, and then transpiles the logical plan to Dask operations for execution. - DataFusion Ballista is a distributed SQL query engine that extends DataFusion's Python bindings for distributed use cases. - DataFusion Ray is another distributed query engine that uses DataFusion's Python bindings.
1 parent 3cf593a commit 31425e7

File tree

5 files changed

+1350
-0
lines changed

5 files changed

+1350
-0
lines changed

‎databases/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -768,6 +768,7 @@
768768
SUBDIR += py-couchdb
769769
SUBDIR += py-cymysql
770770
SUBDIR += py-databases
771+
SUBDIR += py-datafusion
771772
SUBDIR += py-dbf
772773
SUBDIR += py-dbt-core
773774
SUBDIR += py-dbt-duckdb

‎databases/py-datafusion/Makefile‎

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
PORTNAME= datafusion
2+
PORTVERSION= 48.0.0
3+
CATEGORIES= databases python
4+
MASTER_SITES= PYPI
5+
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
6+
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
7+
8+
MAINTAINER= sunpoet@FreeBSD.org
9+
COMMENT= Build and run queries against data
10+
WWW= https://datafusion.apache.org/python/ \
11+
https://github.com/apache/datafusion-python
12+
13+
LICENSE= APACHE20
14+
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
15+
16+
BUILD_DEPENDS= protoc:devel/protobuf \
17+
${PYTHON_PKGNAMEPREFIX}maturin>=1.8.1:devel/py-maturin@${PY_FLAVOR}
18+
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pyarrow>=11.0.0:databases/py-pyarrow@${PY_FLAVOR}
19+
20+
USES= cargo python
21+
USE_PYTHON= autoplist concurrent pep517
22+
23+
CARGO_BUILD= no
24+
CARGO_INSTALL= no
25+
26+
.include <bsd.port.pre.mk>
27+
28+
.if ${PYTHON_REL} < 31300
29+
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}typing-extensions>=0:devel/py-typing-extensions@${PY_FLAVOR}
30+
.endif
31+
32+
.include <bsd.port.post.mk>

0 commit comments

Comments
 (0)