aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpsykose <alice@ayaya.dev>2022-11-24 07:47:41 +0000
committerpsykose <alice@ayaya.dev>2022-11-24 08:47:41 +0100
commit7a174aa29a3faad97a0c4e82129e325e6cc6934e (patch)
treed6497bd67d989de0b7f75c8e1355852a8cd898d7
parentb54ca920175ca25cb3a7f452511159cb5597620b (diff)
downloadaports-7a174aa29a3faad97a0c4e82129e325e6cc6934e.tar.gz
aports-7a174aa29a3faad97a0c4e82129e325e6cc6934e.tar.bz2
aports-7a174aa29a3faad97a0c4e82129e325e6cc6934e.tar.xz
testing/py3-vatnumber: fix build
-rw-r--r--testing/py3-vatnumber/APKBUILD10
-rw-r--r--testing/py3-vatnumber/py3.patch10
2 files changed, 18 insertions, 2 deletions
diff --git a/testing/py3-vatnumber/APKBUILD b/testing/py3-vatnumber/APKBUILD
index 37ad9d33cc..b4c7ce9a03 100644
--- a/testing/py3-vatnumber/APKBUILD
+++ b/testing/py3-vatnumber/APKBUILD
@@ -12,11 +12,14 @@ license="GPL-3.0-or-later"
depends="python3 py3-python-stdnum"
makedepends="py3-setuptools"
checkdepends="py3-pysimplesoap"
-source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
+source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz
+ py3.patch
+ "
builddir="$srcdir"/$_pkgname-$pkgver
build() {
+ 2to3 -w vatnumber
python3 setup.py build
}
@@ -28,4 +31,7 @@ package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
-sha512sums="708b73f8d059638c165663f8b36dd8602c0aa857be456e50690dd61c09b9a8a2e560bf2a3ed89a790670c93f5b84c5a391cef748bebf0fa978a6fe5e319a541f vatnumber-1.2.tar.gz"
+sha512sums="
+708b73f8d059638c165663f8b36dd8602c0aa857be456e50690dd61c09b9a8a2e560bf2a3ed89a790670c93f5b84c5a391cef748bebf0fa978a6fe5e319a541f vatnumber-1.2.tar.gz
+74339ae600e1745ffbcd9c75ebcccbfe2f2a9cc33f5cfcecfa446ac59284dbfcc7e2db9001e86b6bef6677c37e4d27b371fdfef86e1eba23c2b7659ad5281f24 py3.patch
+"
diff --git a/testing/py3-vatnumber/py3.patch b/testing/py3-vatnumber/py3.patch
new file mode 100644
index 0000000000..9804bcf60b
--- /dev/null
+++ b/testing/py3-vatnumber/py3.patch
@@ -0,0 +1,10 @@
+diff --git a/setup.py b/setup.py
+index 048fe6b..5a7a7a2 100644
+--- a/setup.py
++++ b/setup.py
+@@ -43,5 +43,4 @@ setup(name='vatnumber',
+ 'suds': ['suds'],
+ },
+ test_suite="vatnumber.tests",
+- use_2to3=True,
+ )