blob: a31c9494e323e06a88b049ae8cafd089b64d5037 (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Maintainer: Blair Bonnett <blair.bonnett@gmail.com>
pkgname=python-crowdin-api-client
pkgdesc='Lightweight interface to the Crowdin API'
pkgver=1.21.0
pkgrel=1
url='https://support.crowdin.com/api/v2/'
license=('MIT')
arch=('any')
depends=(
'python-deprecated'
'python-requests'
)
makedepends=(
'git'
'python-build'
'python-installer'
'python-setuptools'
'python-wheel'
)
checkdepends=(
'python-pytest'
'python-pytest-cov'
'python-requests-mock'
)
_pyname=crowdin_api_client
source=(
"git+https://github.com/crowdin/crowdin-api-client-python.git#tag=$pkgver"
)
sha256sums=(
'a6af26b86f64ad5d8ac90926455a58572c36e516fb92c0204b220d61c506ae0d'
)
build() {
cd crowdin-api-client-python
python -m build --no-isolation --wheel
}
check() {
cd crowdin-api-client-python
python -m venv --system-site-packages test-env
test-env/bin/python -m installer "dist/$_pyname-$pkgver"-*.whl
test-env/bin/python -m pytest
}
package() {
cd crowdin-api-client-python
python -m installer --destdir="$pkgdir" "dist/$_pyname-$pkgver"-*.whl
install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
}
|