summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d5774959162d3263feefc28c4652f51bcad13aac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Maintainer: gilcu3
# Contributor: gilcu3

_pkgname=deep-translator
pkgname=python-$_pkgname-git
pkgver=1.1.14
pkgrel=1
pkgdesc="A flexible FREE and UNLIMITED tool to translate between different languages in a simple way using multiple translators."
url="https://github.com/nidhaloff/deep-translator"
license=("Apache-2.0")
arch=("any")
makedepends=('git' 'python-build' 'python-poetry')
depends=('python' 'python-beautifulsoup4' 'python-requests')
optdepends=('python-openai' 'python-docx2txt' 'python-pypdf')
provides=('python-deep-translator')
conflicts=('python-deep-translator')
source=(git+$url)
sha256sums=('SKIP')


build() {
  cd $srcdir/${_pkgname}
  # export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
  python -m build --wheel --no-isolation
}

package() {
  cd $srcdir/${_pkgname}
  python -m installer --destdir="$pkgdir" dist/*.whl
}