mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
python-{ipykernel,jsonschema,mistune,path,prompt_toolkit,rpy2, singledispatch}: removed as obsolete, FS#1817
This commit is contained in:
parent
6077985401
commit
d0047f30e9
@ -1,39 +0,0 @@
|
||||
pkgbase=python-ipykernel
|
||||
pkgname=('python3-ipykernel' 'python2-ipykernel')
|
||||
pkgver=4.3.1
|
||||
pkgrel=1
|
||||
pkgdesc="The ipython kernel for Jupyter"
|
||||
arch=('any')
|
||||
url="https://pypi.python.org/pypi/ipykernel"
|
||||
license=('BSD')
|
||||
depends=('python3')
|
||||
makedepends=('python3' 'python2')
|
||||
source=("ipykernel-$pkgver.tgz::https://github.com/ipython/ipykernel/archive/$pkgver.tar.gz")
|
||||
sha1sums=('260a6eb67cded6916484deaaad6193a60483e29b')
|
||||
|
||||
prepare() {
|
||||
cd "$srcdir"
|
||||
cp -r ipykernel-$pkgver python2-ipykernel-$pkgver
|
||||
}
|
||||
|
||||
package_python3-ipykernel() {
|
||||
|
||||
cd "$srcdir/ipykernel-$pkgver"
|
||||
python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=0
|
||||
|
||||
cd "$srcdir"
|
||||
install -Dm644 "ipykernel-$pkgver/COPYING.md" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
}
|
||||
|
||||
package_python2-ipykernel() {
|
||||
depends=('python2')
|
||||
|
||||
cd "$srcdir/python2-ipykernel-$pkgver"
|
||||
python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=0
|
||||
|
||||
cd "$srcdir"
|
||||
install -d "$pkgdir/usr/share/jupyter/kernels/python2"
|
||||
echo '{"display_name": "Python 2", "language": "python2", "argv": ["python2", "-c", "from IPython.kernel.zmq.kernelapp import main; main()", "-f", "{connection_file}"],"codemirror_mode": {"version": 2, "name": "ipython2"}}' > "$pkgdir/usr/share/jupyter/kernels/python2/kernel.json"
|
||||
|
||||
install -Dm644 "ipykernel-$pkgver/COPYING.md" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
}
|
@ -1,32 +0,0 @@
|
||||
pkgbase=python-jsonschema
|
||||
_pkgname=jsonschema
|
||||
pkgname=('python3-jsonschema' 'python2-jsonschema')
|
||||
pkgver=2.5.1
|
||||
pkgrel=4
|
||||
pkgdesc="An implementation of JSON Schema validation for Python"
|
||||
arch=('any')
|
||||
url="http://pypi.python.org/pypi/jsonschema"
|
||||
license=('MIT')
|
||||
makedepends=('python3-setuptools' 'python2-setuptools')
|
||||
source=("http://pypi.python.org/packages/source/j/jsonschema/${pkgname:8}-$pkgver.tar.gz")
|
||||
sha256sums=('36673ac378feed3daa5956276a829699056523d7961027911f064b52255ead41')
|
||||
|
||||
prepare(){
|
||||
cp -a $_pkgname-$pkgver $_pkgname-$pkgver-2
|
||||
find $_pkgname-$pkgver-2 -name \*.py -exec sed -i '1s/python$/&2/' {} +
|
||||
}
|
||||
|
||||
package_python3-jsonschema() {
|
||||
depends=('python3')
|
||||
cd "$srcdir/$_pkgname-$pkgver"
|
||||
python3 setup.py install --root="$pkgdir/" --optimize=1
|
||||
install -D -m644 json/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
|
||||
}
|
||||
|
||||
package_python2-jsonschema() {
|
||||
depends=('python2-singledispatch')
|
||||
cd "$srcdir/$_pkgname-$pkgver-2"
|
||||
python2 setup.py install --root="$pkgdir/" --optimize=1
|
||||
install -D -m644 json/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
|
||||
mv $pkgdir/usr/bin/jsonschema{,2}
|
||||
}
|
@ -1,31 +0,0 @@
|
||||
pkgbase=python-mistune
|
||||
_pkgname=mistune
|
||||
pkgname=('python3-mistune' 'python2-mistune')
|
||||
pkgver=0.7.2
|
||||
pkgrel=1
|
||||
pkgdesc="The fastest markdown parser in pure Python with renderer feature."
|
||||
arch=('any')
|
||||
url="https://github.com/lepture/mistune"
|
||||
license=('BSD')
|
||||
depends=('python3')
|
||||
makedepends=('python3-setuptools' 'python2-setuptools')
|
||||
source=("https://github.com/lepture/mistune/archive/v${pkgver}.tar.gz")
|
||||
md5sums=('798a72534237c25e6349d24652d0a6bc')
|
||||
|
||||
prepare() {
|
||||
cd "$srcdir"
|
||||
cp -r "$srcdir/$_pkgname-$pkgver" "$srcdir/${_pkgname}2-$pkgver"
|
||||
}
|
||||
|
||||
package_python3-mistune() {
|
||||
cd "$srcdir/${_pkgname}-$pkgver"
|
||||
python3 setup.py install --root="$pkgdir/"
|
||||
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/python3-mistune/LICENSE"
|
||||
}
|
||||
|
||||
package_python2-mistune() {
|
||||
depends=('python2')
|
||||
cd "$srcdir/${_pkgname}2-$pkgver"
|
||||
python2 setup.py install --root="$pkgdir/"
|
||||
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/python2-mistune/LICENSE"
|
||||
}
|
@ -1,32 +0,0 @@
|
||||
pkgbase=python-path
|
||||
pkgname=('python3-path' 'python2-path')
|
||||
pkgver=8.1.2
|
||||
pkgrel=2
|
||||
pkgdesc="Aka path.py, implements path objects as first-class entities"
|
||||
arch=('any')
|
||||
url="http://ipython.org"
|
||||
license=('MIT')
|
||||
depends=('python3')
|
||||
makedepends=('python3-setuptools' 'python2-setuptools')
|
||||
source=("https://pypi.python.org/packages/source/p/path.py/path.py-$pkgver.tar.gz")
|
||||
sha256sums=('ada95d117c4559abe64080961daf5badda68561afdd34c278f8ca20f2fa466d2')
|
||||
|
||||
prepare() {
|
||||
cd "$srcdir"
|
||||
cp -r path.py-$pkgver python2-path.py-$pkgver
|
||||
}
|
||||
|
||||
package_python3-path() {
|
||||
cd "$srcdir/path.py-$pkgver"
|
||||
python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=0
|
||||
install -d "$pkgdir/usr/share/licenses/$pkgname/"
|
||||
head -n 21 path.py > "$pkgdir/usr/share/licenses/$pkgname/license.txt"
|
||||
}
|
||||
|
||||
package_python2-path() {
|
||||
depends=('python2')
|
||||
cd "$srcdir/python2-path.py-$pkgver"
|
||||
python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=0
|
||||
install -d "$pkgdir/usr/share/licenses/$pkgname/"
|
||||
head -n 21 path.py > "$pkgdir/usr/share/licenses/$pkgname/license.txt"
|
||||
}
|
@ -1,47 +0,0 @@
|
||||
# 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"
|
||||
}
|
@ -1,33 +0,0 @@
|
||||
pkgbase=python-rpy
|
||||
pkgname=('python2-rpy2' 'python3-rpy2')
|
||||
pkgver=2.7.8
|
||||
pkgrel=2
|
||||
pkgdesc="A very simple, yet robust, Python interface to the R Programming Language."
|
||||
arch=('x86_64')
|
||||
url="https://bitbucket.org/rpy2/rpy2"
|
||||
license=('MPL' 'GPL' 'LGPL')
|
||||
makedepends=('python3-setuptools' 'python2-setuptools' 'python3-numpy' 'python2-numpy' 'r')
|
||||
source=("http://pypi.python.org/packages/source/r/rpy2/rpy2-$pkgver.tar.gz")
|
||||
md5sums=('56ca162bca76bb9c3f935f099c916196')
|
||||
|
||||
prepare() {
|
||||
cd rpy2-$pkgver
|
||||
sed -i "s:Rlapack:lapack:" setup.py
|
||||
sed -i "s:os.path.join(RHOME.strip(), 'include'):'/usr/include/R':" setup.py
|
||||
}
|
||||
|
||||
package_python2-rpy2() {
|
||||
depends=('python2-numpy' 'r' 'python2-singledispatch')
|
||||
cd rpy2-$pkgver
|
||||
|
||||
python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
|
||||
sed -e 's|#!/usr/bin/env python|#!/usr/bin/env python2|' -i "$pkgdir"/usr/lib/python2.7/site-packages/rpy2/tests.py
|
||||
}
|
||||
|
||||
package_python3-rpy2() {
|
||||
depends=('python3-numpy' 'r')
|
||||
cd rpy2-$pkgver
|
||||
|
||||
python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
|
||||
}
|
||||
|
@ -1,34 +0,0 @@
|
||||
pkgname=python2-singledispatch
|
||||
pkgver=3.4.0.3
|
||||
pkgrel=2
|
||||
pkgdesc="Implementation of functools.singledispatch from Python 3.4"
|
||||
arch=('any')
|
||||
url="https://bitbucket.org/ambv/singledispatch"
|
||||
license=('MIT')
|
||||
depends=('python2' 'python2-six')
|
||||
makedepends=('python2-setuptools')
|
||||
source=("https://pypi.python.org/packages/source/s/singledispatch/singledispatch-$pkgver.tar.gz" license)
|
||||
sha1sums=('f93241b06754a612af8bb7aa208c4d1805637022'
|
||||
'be310c56486206cc0a7595cdd0f993cfa033dbef')
|
||||
|
||||
prepare() {
|
||||
cd "${srcdir}"/singledispatch-$pkgver
|
||||
|
||||
sed -i -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
|
||||
$(find "${srcdir}" -name '*.py')
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "${srcdir}"/singledispatch-$pkgver
|
||||
|
||||
python2 setup.py build
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}"/singledispatch-$pkgver
|
||||
|
||||
python2 setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1
|
||||
|
||||
install -D "${srcdir}"/license "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
}
|
||||
|
@ -1,19 +0,0 @@
|
||||
Copyright (c) 2013 Łukasz Langa
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
Loading…
Reference in New Issue
Block a user