[arch-commits] Commit in (4 files)

Bruno Pagani archange at archlinux.org
Sat Feb 15 13:15:54 UTC 2020


    Date: Saturday, February 15, 2020 @ 13:15:53
  Author: archange
Revision: 571453

Initial addition of python-wurlitzer to [community]

Required by python-spyder-kernels

Added:
  python-wurlitzer/
  python-wurlitzer/repos/
  python-wurlitzer/trunk/
  python-wurlitzer/trunk/PKGBUILD

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

Added: python-wurlitzer/trunk/PKGBUILD
===================================================================
--- python-wurlitzer/trunk/PKGBUILD	                        (rev 0)
+++ python-wurlitzer/trunk/PKGBUILD	2020-02-15 13:15:53 UTC (rev 571453)
@@ -0,0 +1,31 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+_pkg=wurlitzer
+pkgname=python-${_pkg}
+pkgver=2.0.0
+pkgrel=1
+pkgdesc="Capture C-level stdout/stderr in Python"
+arch=(any)
+url="https://github.com/minrk/wurlitzer"
+license=(MIT)
+depends=(python)
+makedepends=(python-setuptools)
+checkdepends=(python-pytest python-mock)
+source=("https://files.pythonhosted.org/packages/source/${_pkg::1}/${_pkg}/${_pkg}-${pkgver}.tar.gz")
+sha256sums=('86a510c0d34fcc9786ad1a9f557ac980f30ef2f821a75c2e4333311e0fd9cd76')
+
+build() {
+  cd ${_pkg}-${pkgver}
+  python setup.py build
+}
+
+check() {
+  cd ${_pkg}-${pkgver}
+  py.test test.py
+}
+
+package() {
+  cd ${_pkg}-${pkgver}
+  python setup.py install --root "${pkgdir}" --prefix=/usr --optimize=1 --skip-build
+  install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}/
+}



More information about the arch-commits mailing list