pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

py-polars: add start of a package



Module Name:	pkgsrc-wip
Committed By:	Thomas Klausner <wiz%gatalith.at@localhost>
Pushed By:	wiz
Date:		Wed Jan 11 01:50:05 2023 +0100
Changeset:	5f58b59f92c9f00c8d46e67a49a05315593f8c11

Modified Files:
	Makefile
Added Files:
	py-polars/DESCR
	py-polars/Makefile
	py-polars/PLIST
	py-polars/TODO
	py-polars/distinfo

Log Message:
py-polars: add start of a package

The source has no Cargo.lock file, so print-cargo-depends does not work.

Feel free to finish or delete this.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=5f58b59f92c9f00c8d46e67a49a05315593f8c11

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile           |  1 +
 py-polars/DESCR    |  9 +++++++++
 py-polars/Makefile | 32 ++++++++++++++++++++++++++++++++
 py-polars/PLIST    |  4 ++++
 py-polars/TODO     |  3 +++
 py-polars/distinfo |  5 +++++
 6 files changed, 54 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index a2070c5b16..393b2bcb32 100644
--- a/Makefile
+++ b/Makefile
@@ -4390,6 +4390,7 @@ SUBDIR+=	py-pluginbase
 SUBDIR+=	py-pmi
 SUBDIR+=	py-poisson-approval
 SUBDIR+=	py-poissongeometry
+SUBDIR+=	py-polars
 SUBDIR+=	py-policy-sentry
 SUBDIR+=	py-polygon3
 SUBDIR+=	py-polynomial
diff --git a/py-polars/DESCR b/py-polars/DESCR
new file mode 100644
index 0000000000..927c41f383
--- /dev/null
+++ b/py-polars/DESCR
@@ -0,0 +1,9 @@
+Polars is a blazingly fast DataFrames library implemented in Rust
+using Apache Arrow Columnar Format as the memory model.
+
+* Lazy | eager execution
+* Multi-threaded
+* SIMD
+* Query optimization
+* Powerful expression API
+* Hybrid Streaming (larger than RAM datasets)
diff --git a/py-polars/Makefile b/py-polars/Makefile
new file mode 100644
index 0000000000..7227392bc8
--- /dev/null
+++ b/py-polars/Makefile
@@ -0,0 +1,32 @@
+# $NetBSD$
+
+DISTNAME=	polars-0.15.14
+CATEGORIES=	math
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/polars/}
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://www.pola.rs/
+COMMENT=	Lightning-fast DataFrame library
+LICENSE=	mit
+
+BUILD_DEPENDS+=	${PYPKGPREFIX}-maturin-[0-9]*:../../wip/py-maturin
+
+USE_LANGUAGES=	# none
+PYTHON_VERSIONS_INCOMPATIBLE=		27
+
+do-build:
+	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} maturin-${PYVERSSUFFIX} pep517 \
+		build-wheel -i ${PREFIX}/bin/python${PYVERSSUFFIX} --compatibility off \
+		--offline
+
+WHEELFILE=	${WRKSRC}/target/wheels/*.whl
+
+.include "../../lang/python/pyversion.mk"
+
+.if ${PYPKGPREFIX} == "py37" || ${PYPKGPREFIX} == "py38" || ${PYPKGPREFIX} == "py39"
+DEPENDS+=	${PYPKGPREFIX}-typing-extensions>=4.0:../../devel/py-typing-extensions
+.endif
+
+.include "../../lang/python/wheel.mk"
+.include "../../lang/rust/cargo.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/py-polars/PLIST b/py-polars/PLIST
new file mode 100644
index 0000000000..92ba51a2d7
--- /dev/null
+++ b/py-polars/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD$
+@comment TODO: to fill this file with the file listing:
+@comment TODO: 1. run "/usr/bin/make package"
+@comment TODO: 2. run "/usr/bin/make print-PLIST"
diff --git a/py-polars/TODO b/py-polars/TODO
new file mode 100644
index 0000000000..0c93d6bf26
--- /dev/null
+++ b/py-polars/TODO
@@ -0,0 +1,3 @@
+Unfinished.
+
+This has no Cargo.lock file, so print-cargo-depends does not work.
diff --git a/py-polars/distinfo b/py-polars/distinfo
new file mode 100644
index 0000000000..3663744836
--- /dev/null
+++ b/py-polars/distinfo
@@ -0,0 +1,5 @@
+$NetBSD$
+
+BLAKE2s (polars-0.15.14.tar.gz) = 4c9f143a02f753eca9992a0bf376c34af04553fd2142e324186b6ad891c72c48
+SHA512 (polars-0.15.14.tar.gz) = 5664a563aaece0a906aa55acf66fcfdedfac5804ce4f024c04a1f0b51909bef86b93b953431c326ca0224b0ceb8f1da71c37609fe550acbb1d6b570ee8b9d023
+Size (polars-0.15.14.tar.gz) = 1290968 bytes


Home | Main Index | Thread Index | Old Index