Commit ab3b6ca1 authored by Leo's avatar Leo

testing/py-colorama: upgrade to 0.4.1

parent 9b14eaa8
......@@ -2,21 +2,27 @@
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-colorama
_pkgname=colorama
pkgver=0.3.9
pkgrel=1
pkgver=0.4.1
pkgrel=0
pkgdesc="Simple cross-platform colored terminal text"
options="!check" # 2 Tests fail on drone-ci
url="https://pypi.python.org/pypi/colorama"
arch="noarch"
license="BSD"
makedepends="python2-dev python3-dev py-setuptools"
license="BSD-3-Clause"
makedepends="py-setuptools py3-setuptools"
checkdepends="py2-mock py3-mock"
subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
source="$pkgname-$pkgver.tar.gz::https://github.com/tartley/colorama/archive/$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver
build() {
cd "$builddir"
python2 setup.py build || return 1
python3 setup.py build || return 1
python2 setup.py build
python3 setup.py build
}
check() {
python2 -m unittest discover -p *_test.py
python3 -m unittest discover -p *_test.py
}
package() {
......@@ -42,4 +48,4 @@ _py() {
$python setup.py install --prefix=/usr --root="$subpkgdir"
}
sha512sums="248e3d3d1f95cb85baf55ef4d705508213b81edfb04b39fe9a7bc9c7ac564986726ab6e9d9f73d64ee02e1c9b86d4c6bba40543590dbd170180a37d69e07b627 colorama-0.3.9.tar.gz"
sha512sums="006069859ca05ec8a6808860ca73ab541b246e6e6443b1bc8426973beaa5268660b48994f21edb6492fe97c4b9d29949b874b861ec200b1756d40e8abda8dee0 py-colorama-0.4.1.tar.gz"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment