Commit 628f65d4 authored by Stefan Wagner's avatar Stefan Wagner Committed by Andy Postnikov
Browse files

testing/py-configparser: new aport

parent 69b97679
# Contributor: Stefan Wagner <stw@bit-strickerei.de>
# Maintainer: Stefan Wagner <stw@bit-strickerei.de>
pkgname=py-configparser
_pkgname=configparser
pkgver=3.7.1
pkgrel=0
pkgdesc="This library brings the updated configparser from Python 3.5 to Python 2.6-3.5"
url="https://docs.python.org/3/library/configparser.html"
arch="noarch"
license="MIT"
makedepends="python2-dev python3-dev py-setuptools"
subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_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"
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="416a4a4c72cbb9f4b170bb71f6ad5711e70af6eb457f6730814c33581ea39f30f352e81f357e522c0225922fe45030e646ee13a12683e4092e997fcdad523149 configparser-3.7.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