Commit 7b6ab5a1 authored by gnastyle's avatar gnastyle

python-prompt_toolkit: imported as new dep of ipython

parent c608e80a
# Contributor from Arch https://www.archlinux.org/packages/community/any/python-prompt_toolkit/
pkgbase=python-prompt_toolkit
pkgname=('python3-prompt_toolkit' 'python2-prompt_toolkit')
_name=prompt_toolkit
pkgver=1.0.3
pkgrel=1
pkgdesc="Library for building powerful interactive command lines in Python"
arch=('any')
depends=('python3-pygments'
'python3-six'
'python3-wcwidth')
makedepends=('python3-setuptools' 'python2-setuptools'
'python2-pygments' 'python2-six' 'python2-wcwidth')
url="https://github.com/jonathanslenders/python-prompt-toolkit"
license=('BSD')
options=(!emptydirs)
source=("https://files.pythonhosted.org/packages/source/p/$_name/$_name-$pkgver.tar.gz")
sha256sums=('805e026f0cbad27467e93f9dd3e3777718d401a62788c1e84ca038e967ad8ba2')
prepare() {
cd "$srcdir"
cp -r $_name-$pkgver python2-$_name-$pkgver
}
build() {
cd "$srcdir/$_name-$pkgver"
python3 setup.py build
cd "$srcdir/python2-$_name-$pkgver"
python2 setup.py build
}
package_python3-prompt_toolkit() {
cd "$srcdir/$_name-$pkgver"
python3 setup.py install --root="$pkgdir" --optimize=1
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
package_python2-prompt_toolkit() {
depends=('python2-pygments'
'python2-six'
'python2-wcwidth')
cd "$srcdir/python2-$_name-$pkgver"
python2 setup.py install --root="$pkgdir" --optimize=1
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
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