Date: Thursday, April 6, 2023 @ 02:48:17
Author: felixonmars
Revision: 1438158
archrelease: copy trunk to community-staging-any
Added:
ipython/repos/community-staging-any/
ipython/repos/community-staging-any/PKGBUILD
(from rev 1438157, ipython/trunk/PKGBUILD)
----------+
PKGBUILD | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 62 insertions(+)
Copied: ipython/repos/community-staging-any/PKGBUILD (from rev 1438157,
ipython/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-06 02:48:17 UTC (rev 1438158)
@@ -0,0 +1,62 @@
+# Maintainer: Daniel M. Capella <[email protected]>
+# Contributor: Kyle Keen <[email protected]>
+# Contributor: PepeSmith
+# Contributor: Aron Asor <aronasorman at gmail.com>
+# Contributor: Chris Brannon <[email protected]>
+# Contributor: Douglas Soares de Andrade <[email protected]>
+
+pkgname=ipython
+pkgver=8.12.0
+pkgrel=2
+pkgdesc='Enhanced Interactive Python shell'
+arch=('any')
+url=https://ipython.org
+license=('BSD')
+depends=('python' 'python-traitlets' 'python-pexpect' 'sqlite'
+ 'python-pickleshare' 'python-prompt_toolkit'
+ 'python-jedi' 'python-pygments' 'python-backcall'
+ 'python-matplotlib-inline' 'python-stack-data')
+makedepends=('python-build' 'python-installer' 'python-setuptools'
'python-wheel')
+# texlive-bin checkdep excluded due to test_latex_to_png_color failure
+checkdepends=('python-pytest' 'python-pytest-asyncio' 'python-testpath'
+ 'jupyter-nbformat' 'python-ipykernel' 'python-numpy'
'python-trio'
+ 'python-matplotlib' 'python-curio' 'python-pandas' 'tcsh')
+optdepends=('python-black: to auto format with Black'
+ 'yapf: to auto format with YAPF')
+source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/$pkgname/$pkgname-$pkgver.tar.gz"
+
"IPython-icon.png::https://www.packal.org/sites/default/files/public/styles/icon_large/public/workflow-files/nkeimipynbworkflow/icon/icon.png")
+sha256sums=('a950236df04ad75b5bc7f816f9af3d74dc118fd42f2ff7e80e8e60ca1f182e2d'
+ '3c44a6fa1e3a8afc24754c90469404770b639cb960361988999a4cdd677699d8')
+b2sums=('946d3e649dcf8eea3518ed68499cfcaa6caa7eac99aa21c05fcbb81338037151253ba84d8d942746600dad3883f6d0e8ba1e82e9932cdddc8e1e77a270573ebf'
+
'd445e2bc7a037db8715ea103611720e965987e155c32e445b0ef783e519fca8a0301b16c5763fd9a5d8d169c3b0d7b4db6c0bd0f9772842258b135dcb1d6d5a2')
+
+build() {
+ cd $pkgname-$pkgver
+ python -m build --wheel --skip-dependency-check --no-isolation
+}
+
+check() {
+ cd $pkgname-$pkgver
+ python -m venv --system-site-packages test-env
+ test-env/bin/python -m installer dist/*.whl
+ test-env/bin/python -m pytest
+}
+
+package() {
+ # FS#47046
+ install -Dm644 IPython-icon.png "$pkgdir"/usr/share/pixmaps/ipython.png
+
+ cd $pkgname-$pkgver
+ python -m installer --destdir="$pkgdir" dist/*.whl
+
+ cd 'examples/IPython Kernel'
+ # FS#45120
+ sed -i 's/gnome-netstatus-idle/ipython/' ipython.desktop
+ install -Dm644 -t "$pkgdir"/usr/share/applications ipython.desktop
+
+ # Symlink license file
+ local site_packages=$(python -c "import site;
print(site.getsitepackages()[0])")
+ install -d "$pkgdir"/usr/share/licenses/$pkgname
+ ln -s "$site_packages"/$pkgname-$pkgver.dist-info/LICENSE \
+ "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}