blob: b6b6082f704a0e27045e1d6718bd37d68c97aa18 (
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
|
# Maintainer: a821
# Contributor: Luis Martinez <luis dot martinez at disroot dot org>
# Contributor: Kaizhao Zhang <zhangkaizhao@gmail.com>
pkgname=python-binary
_pkg="${pkgname#python-}"
pkgver=1.0.1
pkgrel=1
pkgdesc="Easily convert between binary and SI units"
arch=('any')
url="https://github.com/ofek/binary"
license=('MIT' 'Apache-2.0')
depends=('python')
makedepends=(
'git'
'python-build'
'python-installer'
'python-hatchling'
'python-hatch-vcs'
'python-wheel'
)
checkdepends=('python-pytest')
source=("git+${url}.git#commit=v$pkgver")
sha256sums=('1ccc00c8550100d93d844683c6ca01d5753006403803c0b57dac5bbd88463407')
build() {
cd "$_pkg"
python -m build --wheel --no-isolation
}
check() {
cd "$_pkg"
pytest -x
}
package() {
cd "$_pkg"
python -m installer --destdir="$pkgdir/" dist/*.whl
install -Dm644 README.rst -t "$pkgdir/usr/share/doc/$pkgname/"
install -Dm644 LICENSE-MIT -t "$pkgdir/usr/share/licenses/$pkgname/"
}
|