[arch-commits] Commit in (4 files)

Daniel M. Capella polyzen at archlinux.org
Tue May 4 02:42:27 UTC 2021


    Date: Tuesday, May 4, 2021 @ 02:42:26
  Author: polyzen
Revision: 927334

Add python-matplotlib-inline as dep of ipython

Added:
  python-matplotlib-inline/
  python-matplotlib-inline/repos/
  python-matplotlib-inline/trunk/
  python-matplotlib-inline/trunk/PKGBUILD

----------+
 PKGBUILD |   38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

Added: python-matplotlib-inline/trunk/PKGBUILD
===================================================================
--- python-matplotlib-inline/trunk/PKGBUILD	                        (rev 0)
+++ python-matplotlib-inline/trunk/PKGBUILD	2021-05-04 02:42:26 UTC (rev 927334)
@@ -0,0 +1,38 @@
+# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
+
+_name=matplotlib-inline
+pkgname=python-matplotlib-inline
+pkgver=0.1.2
+pkgrel=1
+pkgdesc='Inline Matplotlib backend for Jupyter'
+arch=('any')
+url=https://github.com/ipython/matplotlib-inline
+license=('BSD')
+depends=('python-traitlets')
+makedepends=('python-setuptools')
+checkdepends=('ipython' 'python-matplotlib')
+optdepends=('python-matplotlib')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
+sha256sums=('f41d5ff73c9f5385775d5c0bc13b424535c8402fe70ea8210f93e11f3683993e')
+b2sums=('361941d7454e4a9cc6dc7be6d34e48b2ac73a01db0fc341712708295ba922f4a1d94020f41569ea4c7192b8494ddb1187a43287f721fe4fc806d5d5ab1c5ef6d')
+
+build() {
+  cd $_name-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd $_name-$pkgver
+  mkdir -p temp
+  local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
+  python setup.py install --skip-build --root=temp
+  PATH="$PWD/temp/usr/bin:$PATH" PYTHONPATH="$PWD/temp/$sitepackages" python -c 'from matplotlib_inline.backend_inline import show'
+}
+
+package() {
+  cd $_name-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENSE
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list