# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). # See COPYING for license details. pkgname=python-thinc _pkgname=thinc pkgver=9.1.1 pkgrel=4 pkgdesc='Practical Machine Learning for NLP.' arch=('x86_64' 'aarch64') url='https://pypi.org/project/thinc/' license=('MIT') depends=('python' 'python-cymem' 'python-blis' 'python-catalogue' 'python-hypothesis' 'python-mock' 'python-murmurhash' 'python-numpy' 'python-pathlib' 'python-plac' 'python-preshed' 'python-pydantic' 'python-six' 'python-srsly' 'python-tqdm' 'python-wasabi') makedepends=('python-pip' 'python-build' 'python-wheel') source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz") sha512sums=('098b344c424235c0e790bb7058dc4b3cb92e160f24488209c8b852b04e630488168ea052e3749b14c039f3618d47ec59a5e24f03e73062c342f720b3dc191768') build() { cd "$_pkgname-$pkgver" python -m build --wheel --outdir="$startdir/dist" } package() { cd "$_pkgname-$pkgver" pip install \ --verbose \ --disable-pip-version-check \ --no-warn-script-location \ --ignore-installed \ --no-compile \ --no-deps \ --root="$pkgdir" \ --prefix=/usr \ --no-index \ --find-links="file://$startdir/dist" \ $_pkgname }