blob: 07b5f5788bd36bfa567b101d14370199341adf46 (
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
|
# Maintainer: Joffrey <j-off@live.fr>
_name='django-ranged-response'
pkgname="python-$_name"
pkgver=0.2.0
pkgrel=5
pkgdesc='Django ranged response'
arch=('any')
url="https://pypi.org/project/$_name"
license=('MIT')
depends=('python-django')
makedepends=(
'python-build'
'python-installer'
'python-setuptools'
'python-wheel'
)
source=(
"$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/${_name:0:1}/$_name/$_name-$pkgver.tar.gz"
'LICENSE'
)
sha256sums=(
'f71fff352a37316b9bead717fc76e4ddd6c9b99c4680cdf4783b9755af1cf985'
'5e47e2a8ca47cda5a311fea4e29186201e6f980fc20d24812596460d289a8275'
)
build() {
cd "$srcdir/$_name-$pkgver"
python -m build --wheel --no-isolation
}
package() {
cd "$srcdir/$_name-$pkgver"
install -Dm644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
python -m installer --destdir="$pkgdir" dist/*.whl
}
|