aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-ansicolors
diff options
context:
space:
mode:
authorprspkt <prspkt@protonmail.com>2019-03-25 21:44:54 +0200
committerprspkt <prspkt@protonmail.com>2019-03-25 22:20:31 +0200
commit8ca582921f3e2e2f50c3284be6ea70fb9ade9763 (patch)
tree3f5481a4b118efa2c48a0bd6d6cf8363d41a417c /testing/py3-ansicolors
parent267e358fcd964afd6066ea1c8846aad98ca32557 (diff)
downloadaports-8ca582921f3e2e2f50c3284be6ea70fb9ade9763.tar.bz2
aports-8ca582921f3e2e2f50c3284be6ea70fb9ade9763.tar.xz
testing/py-ansicolors: upgrade to python3
Diffstat (limited to 'testing/py3-ansicolors')
-rw-r--r--testing/py3-ansicolors/APKBUILD30
-rw-r--r--testing/py3-ansicolors/fix-requires.patch11
2 files changed, 41 insertions, 0 deletions
diff --git a/testing/py3-ansicolors/APKBUILD b/testing/py3-ansicolors/APKBUILD
new file mode 100644
index 0000000000..b8d9551f24
--- /dev/null
+++ b/testing/py3-ansicolors/APKBUILD
@@ -0,0 +1,30 @@
+# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
+# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
+pkgname=py-ansicolors
+_pkgname=ansicolors
+pkgver=1.1.8
+pkgrel=0
+pkgdesc="ANSI colors for Python"
+url="https://github.com/jonathaneunice/colors"
+arch="noarch"
+license="ISC"
+provides="py-ansicolors" # for backwards compatibility
+replaces="py-ansicolors=$pkgver-r$pkgrel" # for backwards compatibility
+depends="python3"
+makedepends="python3-dev py3-setuptools"
+source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.zip
+ fix-requires.patch"
+builddir="$srcdir"/$_pkgname-$pkgver
+
+build() {
+ cd "$builddir"
+ python3 setup.py build
+}
+
+package() {
+ cd "$builddir"
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+}
+
+sha512sums="5afc4a7a6dc4028ad3db80c0e25e340482295ba41082107287abe7f20f6d4a2d0d17bccf269d7ac71482b7944134487f9238bb2c22c8a2f0bf9ea8288e543378 ansicolors-1.1.8.zip
+4473c9a75c5d124e3e587cfb091d8f467bae0cbd23b6ab8295001f5bd91fe5381856b109e2be1a9f1197a5490a2dbd9f83e6e500c9364124b2e66c2826b16ae1 fix-requires.patch"
diff --git a/testing/py3-ansicolors/fix-requires.patch b/testing/py3-ansicolors/fix-requires.patch
new file mode 100644
index 0000000000..1b5fc8f30c
--- /dev/null
+++ b/testing/py3-ansicolors/fix-requires.patch
@@ -0,0 +1,11 @@
+--- a/setup.py
++++ b/setup.py
+@@ -18,7 +18,7 @@
+ license='ISC',
+ packages=['colors'],
+ install_requires=[],
+- test_requore=['tox', 'pytest', 'coverage', 'pytest-cov'],
++ tests_require=['tox', 'pytest', 'coverage', 'pytest-cov'],
+ test_suite="test",
+ zip_safe=False,
+ keywords='ASNI color style console',