aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2021-03-16 14:42:07 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2021-04-05 18:18:19 +0000
commit5ec41314e9309b1ef86cb27ee0b8b50fb5644b07 (patch)
tree77336079a89337dc3206911a4ed2cdea349987a8
parentd85926ffb46803f52222e9c25cd015614d341449 (diff)
downloadaports-5ec41314e9309b1ef86cb27ee0b8b50fb5644b07.tar.gz
aports-5ec41314e9309b1ef86cb27ee0b8b50fb5644b07.tar.bz2
aports-5ec41314e9309b1ef86cb27ee0b8b50fb5644b07.tar.xz
community/py3-automat: rebuild against python 3.9
-rw-r--r--community/py3-automat/APKBUILD12
-rw-r--r--community/py3-automat/disable-m2r.patch12
2 files changed, 19 insertions, 5 deletions
diff --git a/community/py3-automat/APKBUILD b/community/py3-automat/APKBUILD
index 488ee637f1..3e4c517fba 100644
--- a/community/py3-automat/APKBUILD
+++ b/community/py3-automat/APKBUILD
@@ -3,7 +3,7 @@
# Maintainer: Tiago Ilieve <tiago.myhro@gmail.com>
pkgname=py3-automat
pkgver=20.2.0
-pkgrel=0
+pkgrel=1
pkgdesc="Self-service finite-state machines for the programmer on the go"
url="https://automat.readthedocs.io/"
arch="noarch"
@@ -11,7 +11,8 @@ license="MIT"
depends="py3-attrs py3-six"
makedepends="py3-setuptools py3-setuptools_scm"
checkdepends="py3-pytest py3-pluggy"
-source="$pkgname-$pkgver.tar.gz::https://github.com/glyph/automat/archive/v$pkgver.tar.gz"
+source="$pkgname-$pkgver.tar.gz::https://github.com/glyph/automat/archive/v$pkgver.tar.gz
+ disable-m2r.patch"
builddir="$srcdir/automat-$pkgver"
replaces="py-automat" # Backwards compatibility
@@ -19,11 +20,10 @@ provides="py-automat=$pkgver-r$pkgrel" # Backwards compatibility
prepare() {
default_prepare
-
- export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
}
build() {
+ export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
python3 setup.py build
}
@@ -32,7 +32,9 @@ check() {
}
package() {
+ export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
-sha512sums="ccba3e82f589fedb1f83dfb37a6a42b51a78d8c3e6fea22c9518135ff194f5f70e2f9c5f0eab50b6e116dae92c94754aac8dbf0e670a59015c916991736b4076 py3-automat-20.2.0.tar.gz"
+sha512sums="ccba3e82f589fedb1f83dfb37a6a42b51a78d8c3e6fea22c9518135ff194f5f70e2f9c5f0eab50b6e116dae92c94754aac8dbf0e670a59015c916991736b4076 py3-automat-20.2.0.tar.gz
+405c2206b1b4905d51ba5115edbd19ee4c8b97144ceda3495cc696c2d17ba71401c0f2826e38934d74a83bc3186562c1a65a8599bddfb49eb32ed2fb7cd16d01 disable-m2r.patch"
diff --git a/community/py3-automat/disable-m2r.patch b/community/py3-automat/disable-m2r.patch
new file mode 100644
index 0000000000..7a5d24f76b
--- /dev/null
+++ b/community/py3-automat/disable-m2r.patch
@@ -0,0 +1,12 @@
+diff --git a/setup.py b/setup.py
+index 3fb7fdb..b61c8ee 100644
+--- a/setup.py
++++ b/setup.py
+@@ -24,7 +24,6 @@ setup(
+ package_dir={'automat': 'automat'},
+ setup_requires=[
+ 'setuptools-scm',
+- 'm2r',
+ ],
+ install_requires=[
+ "attrs>=19.2.0",