blob: 85c0bbcb0b71da1e49fcba296990da921990bf3c (
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
|
# Maintainer: Caleb Maclennan <caleb@alerque.com>
_pipname=straight.plugin
pkgname=python-$_pipname
pkgver=1.5.0
pkgrel=4
pkgdesc='A simple namespaced plugin facility'
arch=(any)
url="https://github.com/ironfroggy/$_pipname"
license=(MIT)
depends=(python)
makedepends=(python-{build,installer}
python-setuptools
python-wheel)
_archive="$_pipname-$pkgver"
source=("https://pypi.python.org/packages/source/${_pipname::1}/$_pipname/$_archive.tar.gz")
sha256sums=('818a7641068932ed6436d0af0a3bb77bbbde29df0a7142c8bd1a249e7c2f0d38')
build() {
cd "$_archive"
python -m build -wn
}
check() {
cd "$_archive"
PYTHON_PATH=. python tests.py
}
package() {
cd "$_archive"
python -m installer -d "$pkgdir" dist/*.whl
install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
}
|