blob: 7ba23146904fa3ac6b93e3c2906038d3b81d3235 (
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
|
# Maintainer: Mark Collins <tera_1225 [aaht] hotmail ðot com>
pkgname=python-modernize
_name="${pkgname#python-}"
pkgver=0.8.0
pkgrel=1
pkgdesc="Code modernizer for migration to python 3 built on fissix (fork of lib2to3)"
arch=(any)
url="https://github.com/PyCQA/modernize"
license=('LicenseRef-python-modernize')
depends=(
python
python-fissix
)
makedepends=(
python-build
python-installer
python-setuptools
python-wheel
)
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
sha256sums=('1672b4bb19a060a53dd0518cc8f70fc83591c7246e532223459f85d338c60f55')
build() {
cd "$_name-$pkgver"
python -m build --wheel --no-isolation
}
package() {
cd "$_name-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|