Date: Saturday, May 6, 2023 @ 16:27:53
Author: arojas
Revision: 1459036
archrelease: copy trunk to community-any
Added:
python-ndindex/repos/
python-ndindex/repos/community-any/
python-ndindex/repos/community-any/PKGBUILD
(from rev 1459035, python-ndindex/trunk/PKGBUILD)
----------+
PKGBUILD | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
Copied: python-ndindex/repos/community-any/PKGBUILD (from rev 1459035,
python-ndindex/trunk/PKGBUILD)
===================================================================
--- repos/community-any/PKGBUILD (rev 0)
+++ repos/community-any/PKGBUILD 2023-05-06 16:27:53 UTC (rev 1459036)
@@ -0,0 +1,35 @@
+# Maintainer:
+
+_pyname=ndindex
+pkgname=python-$_pyname
+pkgver=1.7
+pkgrel=1
+pkgdesc='Library for manipulating indices of ndarrays'
+arch=(any)
+url='https://quansight-labs.github.io/ndindex/'
+license=(MIT)
+depends=(python-numpy)
+makedepends=(python-build python-installer python-setuptools python-wheel)
+checkdepends=(python-pytest-cov python-hypothesis python-pyflakes)
+source=(https://github.com/Quansight-Labs/ndindex/archive/$pkgver/$pkgname-$pkgver.tar.gz)
+sha256sums=('388f45290393262b69ee440053bfe1664cdac6a125b29c2ea2569cdc3943dbbe')
+
+prepare() {
+ cd $_pyname-$pkgver
+ sed -e 's|--flakes||' -i pytest.ini
+}
+
+build() {
+ cd $_pyname-$pkgver
+ python -m build --wheel --no-isolation
+}
+
+check() {
+ cd $_pyname-$pkgver
+ pytest -v
+}
+
+package() {
+ cd $_pyname-$pkgver
+ python -m installer --destdir="$pkgdir" dist/*.whl
+}