pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
New Package: py-blosc2-2.6.2
Module Name: pkgsrc-wip
Committed By: Matthew Danielson <matthewd%fastmail.us@localhost>
Pushed By: matthewd
Date: Sat Jun 15 21:27:03 2024 -0600
Changeset: 8c71125883d0987096ff89506010aac043ab8c8b
Added Files:
py-blosc2/DESCR
py-blosc2/Makefile
py-blosc2/PLIST
py-blosc2/distinfo
py-blosc2/patches/patch-tests_____init____.py
Log Message:
New Package: py-blosc2-2.6.2
This package provides the python bindings for the blosc2 library.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=8c71125883d0987096ff89506010aac043ab8c8b
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
py-blosc2/DESCR | 8 +++++
py-blosc2/Makefile | 50 +++++++++++++++++++++++++++
py-blosc2/PLIST | 28 +++++++++++++++
py-blosc2/distinfo | 6 ++++
py-blosc2/patches/patch-tests_____init____.py | 9 +++++
5 files changed, 101 insertions(+)
diffs:
diff --git a/py-blosc2/DESCR b/py-blosc2/DESCR
new file mode 100644
index 0000000000..f7da3238fa
--- /dev/null
+++ b/py-blosc2/DESCR
@@ -0,0 +1,8 @@
+Blosc is a high performance compressor optimized for binary data. It
+has been designed to transmit data to the processor cache faster than
+the traditional, non-compressed, direct memory fetch approach via a
+memcpy() OS call. Blosc works well for compressing numerical arrays
+that contains data with relatively low entropy, like sparse data, time
+series, grids with regular-spaced values, etc.
+
+py-blosc is a Python package that wraps Blosc.
diff --git a/py-blosc2/Makefile b/py-blosc2/Makefile
new file mode 100644
index 0000000000..d6ed142756
--- /dev/null
+++ b/py-blosc2/Makefile
@@ -0,0 +1,50 @@
+# $NetBSD: Makefile,v 1.3 2015/04/14 11:56:20 thomasklausner Exp $
+
+DISTNAME= blosc2-2.6.2
+PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES= devel python
+MASTER_SITES= ${MASTER_SITE_PYPI:=b/blosc2/}
+
+MAINTAINER= matthewda%fastmail.us@localhost
+HOMEPAGE= https://github.com/Blosc/python-blosc2
+COMMENT= Python wrapper for the Blosc compression library
+LICENSE= modified-bsd
+
+USE_LANGUAGES+= c
+USE_LANGUAGES+= c++
+
+USE_TOOLS+= cmake
+USE_TOOLS+= pkg-config
+
+TOOL_DEPENDS+= ${PYPKGPREFIX}-scikit-build>=0:../../devel/py-scikit-build
+TOOL_DEPENDS+= ninja-build-[0-9]*:../../devel/ninja-build
+
+DEPENDS+= ${PYPKGPREFIX}-msgpack>=1.0.8:../../devel/py-msgpack
+DEPENDS+= ${PYPKGPREFIX}-numpy>=1.21.2:../../math/py-numpy
+DEPENDS+= ${PYPKGPREFIX}-numexpr>=2.9.0:../../math/py-numexpr
+DEPENDS+= ${PYPKGPREFIX}-cpuinfo>=9.0.0:../../sysutils/py-cpuinfo
+DEPENDS+= ${PYPKGPREFIX}-ndindex>=1.8:../../wip/py-ndindex
+
+LDFLAGS+= ${COMPILER_RPATH_FLAG}${PREFIX}/lib
+
+CMAKE_ARGS+= -DUSE_SYSTEM_BLOSC2:BOOl=TRUE
+# work around RPATH error: file RPATH_CHANGE could not write new RPATH:
+CMAKE_ARGS+= -DCMAKE_BUILD_WITH_INSTALL_RPATH=1
+
+pre-configure:
+ ${LN} -sf ${PREFIX}/bin/cython-${PYVERSSUFFIX} ${BUILDLINK_DIR}/bin/cython
+
+do-build:
+ ${RUN} cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${TOOL_PYTHONBIN} \
+ setup.py bdist_wheel ${CMAKE_ARGS}
+
+TEST_DEPENDS+= ${PYPKGPREFIX}-msgpack>=1.0.8:../../devel/py-msgpack
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
+TEST_DEPENDS+= ${PYPKGPREFIX}-numpy>=1.21.2:../../math/py-numpy
+TEST_DEPENDS+= ${PYPKGPREFIX}-psutil>=5.9.8:../../sysutils/py-psutil
+
+.include "../../devel/blosc2/buildlink3.mk"
+.include "../../devel/py-cython/buildlink3.mk"
+.include "../../lang/python/wheel.mk"
+.include "../../math/py-numpy/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/py-blosc2/PLIST b/py-blosc2/PLIST
new file mode 100644
index 0000000000..2bbf59b20d
--- /dev/null
+++ b/py-blosc2/PLIST
@@ -0,0 +1,28 @@
+@comment $NetBSD$
+${PYSITELIB}/${WHEEL_INFODIR}/LICENSE.txt
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
+${PYSITELIB}/blosc2/__init__.py
+${PYSITELIB}/blosc2/__init__.pyc
+${PYSITELIB}/blosc2/__init__.pyo
+${PYSITELIB}/blosc2/blosc2_ext.so
+${PYSITELIB}/blosc2/core.py
+${PYSITELIB}/blosc2/core.pyc
+${PYSITELIB}/blosc2/core.pyo
+${PYSITELIB}/blosc2/info.py
+${PYSITELIB}/blosc2/info.pyc
+${PYSITELIB}/blosc2/info.pyo
+${PYSITELIB}/blosc2/lazyexpr.py
+${PYSITELIB}/blosc2/lazyexpr.pyc
+${PYSITELIB}/blosc2/lazyexpr.pyo
+${PYSITELIB}/blosc2/ndarray.py
+${PYSITELIB}/blosc2/ndarray.pyc
+${PYSITELIB}/blosc2/ndarray.pyo
+${PYSITELIB}/blosc2/schunk.py
+${PYSITELIB}/blosc2/schunk.pyc
+${PYSITELIB}/blosc2/schunk.pyo
+${PYSITELIB}/blosc2/version.py
+${PYSITELIB}/blosc2/version.pyc
+${PYSITELIB}/blosc2/version.pyo
diff --git a/py-blosc2/distinfo b/py-blosc2/distinfo
new file mode 100644
index 0000000000..0384212e4f
--- /dev/null
+++ b/py-blosc2/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2014/05/09 23:00:49 jihbed Exp $
+
+BLAKE2s (blosc2-2.6.2.tar.gz) = b0f902f3141048bf979503ccdced2ff496c9257620be8f6c30c4eb912b9b949c
+SHA512 (blosc2-2.6.2.tar.gz) = 7d5e649efbe56daabeb11b093e90e71999e625c6bb5c5d7fe6e30942c36e2f1c6670f7f1f493860069a9de47bfeef6c6c6e17a88290920c268048fe0664c9f16
+Size (blosc2-2.6.2.tar.gz) = 5103706 bytes
+SHA1 (patch-tests_____init____.py) = 27853768ff05dd88bfe0485dd1b0ea50e43164ce
diff --git a/py-blosc2/patches/patch-tests_____init____.py b/py-blosc2/patches/patch-tests_____init____.py
new file mode 100644
index 0000000000..420151d25c
--- /dev/null
+++ b/py-blosc2/patches/patch-tests_____init____.py
@@ -0,0 +1,9 @@
+$NetBSD$
+
+Add empty file so that the test run, and pytest doesn't get confused about
+import paths
+
+--- tests/__init__.py.orig 2024-06-15 16:29:17.091983349 +0000
++++ tests/__init__.py
+@@ -0,0 +1 @@
++# Empty on purpose
Home |
Main Index |
Thread Index |
Old Index