# Maintainer: Luis Martinez # Contributor: Dimitris Kiziridis pkgname=python-imagededup _pkg="${pkgname#python-}" pkgver=0.3.0 pkgrel=1 pkgdesc='Finding duplicate images made easy' arch=('x86_64') url='https://github.com/idealo/imagededup' license=('Apache') depends=( 'python-matplotlib' 'python-numpy' 'python-pillow' 'python-pywavelets' 'python-scikit-learn' 'python-scipy' 'python-pytorch' 'python-torchvision' 'python-tqdm') makedepends=('cython' 'python-build' 'python-installer' 'python-setuptools' 'python-wheel') checkdepends=('python-pytest' 'python-pytest-mock') source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz") sha256sums=('e16c5402ed19ea2b32b69293c12b0b58f093185cc04d392a18a77e6e984b0dcb') build() { cd "$_pkg-$pkgver" python -m build --wheel --no-isolation } check() { cd "$_pkg-$pkgver" local _py="$(python -c 'import sys; print("".join(map(str, sys.version_info[:2])))')" PYTHONPATH="$PWD/build/lib.linux-$CARCH-cpython-$_py" pytest -x --disable-warnings } package() { cd "$_pkg-$pkgver" PYTHONHASHSEED=0 python -m installer --destdir="$pkgdir" dist/*.whl } # vim:set ts=2 sw=2 et: