# Maintainer: Philipp A. pkgname=scanpy pkgver=1.9.6 pkgrel=1 pkgdesc='Single-Cell Analysis in Python' arch=(any) provides=(scanpy python-scanpy) url='https://github.com/theislab/scanpy' license=(BSD) depends=( 'python-anndata>=0.7.4' 'python-numpy>=1.17.0' 'python-matplotlib>=3.4' 'python-pandas>=1.1.1' 'python-scipy>=1.4' python-seaborn python-h5py python-tqdm 'python-scikit-learn>=0.24' 'python-statsmodels>=0.10.0' python-patsy 'python-networkx>=2.3' python-natsort python-joblib 'python-numba>=0.41.0' 'python-umap-learn>=0.3.10' python-packaging python-sinfo ) optdepends=( 'python-igraph: PAGA support (also transitively needed for Louvain/Leiden)' 'python-louvain-igraph: Louvain clustering' 'python-leidenalg: leiden community detection' 'python-bbknn: Batch balanced KNN (batch correction)' 'python-rapids: GPU-driven calculation of neighbors' 'python-magic-impute: MAGIC imputation method' 'python-skmisc: For seurat_v3 highly_variable_genes method' 'python-harmonypy: Harmony dataset integration algorithm' 'python-scanorama: Scanorama dataset integration algorithm' 'python-scrublet: Cell doublet detection' 'rapids-cudf: NVIDIA RAPIDS acceleration' 'rapids-cuml: NVIDIA RAPIDS acceleration' 'rapids-cugraph: NVIDIA RAPIDS acceleration' 'python-dask: Dask parallelization' ) makedepends=(python-hatch python-hatch-vcs python-build python-installer python-wheel) source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/$pkgname/$pkgname-$pkgver.tar.gz") sha256sums=('b2f24e6f220cb9d4d893b24f6899ba1a14cf2fef50b7e05bb37980c78de8a013') build() { cd "$pkgname-$pkgver" python -m build --wheel --no-isolation } package() { cd "$pkgname-$pkgver" python -m installer --destdir="$pkgdir" dist/*.whl }