Date: Saturday, May 6, 2023 @ 16:33:24
  Author: arojas
Revision: 1459037

New pytables dependency

Added:
  python-blosc2/
  python-blosc2/trunk/
  python-blosc2/trunk/PKGBUILD

----------+
 PKGBUILD |   39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

Added: python-blosc2/trunk/PKGBUILD
===================================================================
--- python-blosc2/trunk/PKGBUILD                                (rev 0)
+++ python-blosc2/trunk/PKGBUILD        2023-05-06 16:33:24 UTC (rev 1459037)
@@ -0,0 +1,39 @@
+# Maintainer:
+
+_pyname=blosc2
+pkgname=python-$_pyname
+pkgver=2.2.0
+pkgrel=4
+pkgdesc='Wrapper for the blosc2 compressor'
+arch=(x86_64)
+url='https://github.com/Blosc/python-blosc2'
+license=(BSD)
+depends=(blosc2 python-py-cpuinfo python-msgpack python-ndindex python-rich)
+makedepends=(python-build python-installer python-setuptools 
python-scikit-build cmake cython ninja python-numpy)
+checkdepends=(python-pytest)
+source=(https://github.com/Blosc/python-blosc2/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
+sha256sums=('b3f12d8ac9f3cdd16b27813d423dee3cd108a162f3a075d59d1325e0f3c27412')
+
+prepare() {
+  cd $pkgname-$pkgver
+  sed -e 's|, \"cmake\", \"ninja\", \"oldest-supported-numpy\"||' -i 
pyproject.toml
+}
+
+build() {
+  cd $pkgname-$pkgver
+  export CMAKE_ARGS="-DUSE_SYSTEM_BLOSC2=ON"
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  cd $pkgname-$pkgver
+  python -m venv --system-site-packages test-env
+  test-env/bin/python -m installer dist/*.whl
+  test-env/bin/python -m pytest -v
+}
+
+package() {
+  cd $pkgname-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname
+}

Reply via email to