# Maintainer: a821 # Contributor: Alexandr Parkhomenko pkgname=python-opentsne-git pkgver=1.0.0.r12.g2f7eb25 pkgrel=1 pkgdesc="Extensible, parallel implementations of t-SNE" url="https://opentsne.readthedocs.io/en/latest/" arch=('x86_64') license=('BSD') depends=('fftw' 'python-scikit-learn') makedepends=('cython' 'git' 'python-setuptools' 'python-build' 'python-installer' 'python-wheel') optdepends=( 'python-pynndescent: for nearest neighbor descent search' 'python-hnswlib: for fast approximate nearest neightbors' ) provides=("${pkgname%-git}") conflicts=("${pkgname%-git}") source=("git+https://github.com/pavlin-policar/openTSNE.git") sha256sums=('SKIP') pkgver () { cd "openTSNE" git describe --long --tags | sed 's/^v//;s/-/.r/;s/-/./g' } prepare() { cd "openTSNE" sed -i 's/oldest-supported-//' pyproject.toml } build() { cd "openTSNE" python -m build --wheel --no-isolation } package() { cd "openTSNE" python -m installer --destdir="$pkgdir" dist/*.whl install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" }