~dricottone/huttese-apk

de63f66340db28ccce620a3ba8d9488b4b4f295f — Drew DeVault 5 years ago cb49312
Import deps from testing
A sr.ht/py-beautifulsoup4/APKBUILD => sr.ht/py-beautifulsoup4/APKBUILD +64 -0
@@ 0,0 1,64 @@
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-beautifulsoup4
_pkgname=beautifulsoup4
pkgver=4.6.1
pkgrel=1
pkgdesc="A Python HTML/XML parser"
url="http://www.crummy.com/software/BeautifulSoup/index.html"
arch="noarch"
license="MIT"
makedepends="python2-dev py-setuptools python3-dev"
subpackages="py3-$_pkgname:_py3 py2-$_pkgname:_py2"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

prepare() {
	default_prepare

	local python; for python in python2 python3; do
		cp -r "$builddir" "$builddir-$python"
	done

	cd "$builddir-python3"
	2to3 -w bs4 >/dev/null
}

build() {
	local python; for python in python2 python3; do
		cd "$builddir-$python"
		$python setup.py build
	done
}

check() {
	local python; for python in python2 python3; do
		cd "$builddir-$python"
		$python -c "import bs4"
	done
}

package() {
	mkdir -p "$pkgdir"
}

_py2() {
	replaces="$pkgname"
	_py python2
}

_py3() {
	_py python3
}

_py() {
	local python="$1"
	pkgdesc="$pkgdesc (for $python)"
	depends="$python"
	install_if="$pkgname=$pkgver-r$pkgrel $python"

	cd "$builddir-$python"
	$python setup.py install --prefix=/usr --root="$subpkgdir"
}

sha512sums="598f6be620d6c656bdab6d0d6e767a1ffc695a790dc5e3e8cc0f411555de1c52ef1972c93d0916135375c74e5272dd112f00e5ed2fb12a12c90d5d30d852e91c  beautifulsoup4-4.6.1.tar.gz"

A sr.ht/py-cairocffi/APKBUILD => sr.ht/py-cairocffi/APKBUILD +55 -0
@@ 0,0 1,55 @@
# Contributor: 
# Contributor: Stefan Wagner <stw@bit-strickerei.de>
# Maintainer: Stefan Wagner <stw@bit-strickerei.de>
pkgname=py-cairocffi
_pkgname=cairocffi
pkgver=0.9.0
pkgrel=1
pkgdesc="Python CFFI-based binding to Cairo and GDK-PixBuf"
url="https://pythonhosted.org/cairocffi/"
arch="noarch"
license="BSD"
depends="py-cffi cairo gdk-pixbuf"
checkdepends="pytest pytest-cov ttf-dejavu"
makedepends="python2-dev python3-dev py-setuptools"
subpackages="py2-$_pkgname:_py2 py3-$_pkgname:_py3"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

build() {
	cd "$builddir"
	python2 setup.py build
	python3 setup.py build
}

check() {
	cd "$builddir"
	python2 setup.py test
	python3 setup.py test
}

package() {
	mkdir -p "$pkgdir"
}

_py2() {
	replaces="$pkgname"
	_py python2
}

_py3() {
	_py python3
}

_py() {
	local python="$1"
	pkgdesc="$pkgdesc (for $python)"
	depends="$depends $python"
	install_if="$pkgname=$pkgver-r$pkgrel $python"

	cd "$builddir"
	$python setup.py install --prefix=/usr --root="$subpkgdir"
}


sha512sums="0d3d54e0d54b3696c8336d8b3a6d745628da51d9d9f8c50f36006c007e1432a95dd9bafd8d865923059d040cc4e9f7989b3670a5318383b357ffc979eeb920d5  cairocffi-0.9.0.tar.gz"

A sr.ht/py-pdfrw/APKBUILD => sr.ht/py-pdfrw/APKBUILD +50 -0
@@ 0,0 1,50 @@
# Contributor: Roberto Oliveira <robertoguimaraes8@gmail.com>
# Maintainer: Roberto Oliveira <robertoguimaraes8@gmail.com>
pkgname=py-pdfrw
_pkgname=pdfrw
pkgver=0.4
pkgrel=1
pkgdesc="Python library that reads and writes PDFs"
url="https://github.com/pmaupin/pdfrw"
arch="noarch"
license="MIT"
makedepends="python2-dev python3-dev py-setuptools"
subpackages="py3-${pkgname#py-}:_py3 py2-${pkgname#py-}:_py2"
source="$pkgname-$pkgver.tar.gz::https://github.com/pmaupin/pdfrw/archive/v$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	cd "$builddir"
	python2 setup.py build
	python3 setup.py build
}

check() {
	cd "$builddir"
	python2 setup.py check
	python3 setup.py check
}

package() {
	mkdir -p "$pkgdir"
}

_py() {
	local python="$1"
	pkgdesc="$pkgdesc (for $python)"
	depends="$depends $python"
	install_if="$pkgname=$pkgver-r$pkgrel $python"

	cd "$builddir"
	$python setup.py install --prefix=/usr --root="$subpkgdir"
}

_py2() {
	 _py python2
}

_py3() {
	_py python3
}

sha512sums="b80c703b0c72fd49af6fe8c206fd626c51e6786e3cf40f9f01ea9e8a5a0e15bedd08181fd808e96eb432f3a408112314706680bcc08e5d4ac273517538cd6608  py-pdfrw-0.4.tar.gz"

M sr.ht/py-pystache/APKBUILD => sr.ht/py-pystache/APKBUILD +1 -1
@@ 4,7 4,7 @@
pkgname=py-pystache
_realname=pystache
pkgver=0.5.4
pkgrel=0
pkgrel=1
pkgdesc="Pystache is a Python implementation of Mustache."
url="https://pypi.python.org/pypi/pystache"
arch="noarch"

A sr.ht/py-webencodings/APKBUILD => sr.ht/py-webencodings/APKBUILD +51 -0
@@ 0,0 1,51 @@
# Contributor: Stefan Wagner <stw@bit-strickerei.de>
# Maintainer: Stefan Wagner <stw@bit-strickerei.de>
pkgname=py-webencodings
_pkgname=webencodings
pkgver=0.5.1
pkgrel=1
pkgdesc="Character encoding for the web"
url="https://github.com/gsnedders/python-webencodings"
arch="noarch"
license="MIT"
makedepends="python2-dev python3-dev py-setuptools"
subpackages="py2-$_pkgname:_py2 py3-$_pkgname:_py3"
source="$_pkgname-$pkgver.tar.gz::https://github.com/gsnedders/python-$_pkgname/archive/v$pkgver.tar.gz"
builddir="$srcdir"/python-$_pkgname-$pkgver

build() {
	cd "$builddir"
	python2 setup.py build
	python3 setup.py build
}

check() {
	cd "$builddir"
	python2 setup.py test
	python3 setup.py test
}

package() {
	mkdir -p "$pkgdir"
}

_py2() {
	depends="${depends//py-/py2-}"
	_py python2
}

_py3() {
	depends="${depends//py-/py3-}"
	_py python3
}

_py() {
	local python="$1"
	pkgdesc="$pkgdesc (for $python)"
	depends="$depends $python"
	install_if="$pkgname=$pkgver-r$pkgrel $python"

	cd "$builddir"
	$python setup.py install --prefix=/usr --root="$subpkgdir"
}
sha512sums="c5cb34f35fb5bc7ffb88c19eb3262dedbf6231c0ee2871dccbc0f9497193d8209fc20703d451a2bb41a5ff913e63abf7481f7a8f9886c953724e9cf71c34cb74  webencodings-0.5.1.tar.gz"