blob: fbe87dd25334f89010aaff363c2c706865e84fb1 (
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
|
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-future
_pkgname=future
pkgver=0.18.2
pkgrel=5
pkgdesc="Easy, clean, reliable Python 2/3 compatibility"
url="http://python-future.org/"
arch="noarch"
license="MIT"
depends="python3"
# It can be built without it but it misses a lot of functionality
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/f/future/future-$pkgver.tar.gz
python-3.9-support.patch
"
builddir="$srcdir/$_pkgname-$pkgver"
replaces="py-future" # Backwards compatibility
provides="py-future=$pkgver-r$pkgrel" # Backwards compatibility
build() {
python3 setup.py build
}
check() {
PYTHONPATH="$builddir/build/lib" python3 -m pytest
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="
91c025f7d94bcdf93df838fab67053165a414fc84e8496f92ecbb910dd55f6b6af5e360bbd051444066880c5a6877e75157bd95e150ead46e5c605930dfc50f2 py3-future-0.18.2.tar.gz
9023400decb26f9ba466e2690a6f87d2738811bea4927638826bee96abef2b83faf462430948ec2b3a15aaabe22a4b29f86ae2244633f78ca3766ee7592979a7 python-3.9-support.patch
"
|