[arch-commits] Commit in python-wurlitzer/repos (2 files)
Felix Yan
felixonmars at gemini.archlinux.org
Tue Nov 30 20:17:41 UTC 2021
Date: Tuesday, November 30, 2021 @ 20:17:41
Author: felixonmars
Revision: 1057930
archrelease: copy trunk to community-staging-any
Added:
python-wurlitzer/repos/community-staging-any/
python-wurlitzer/repos/community-staging-any/PKGBUILD
(from rev 1057928, python-wurlitzer/trunk/PKGBUILD)
----------+
PKGBUILD | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
Copied: python-wurlitzer/repos/community-staging-any/PKGBUILD (from rev 1057928, python-wurlitzer/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2021-11-30 20:17:41 UTC (rev 1057930)
@@ -0,0 +1,31 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+_pkg=wurlitzer
+pkgname=python-${_pkg}
+pkgver=3.0.2
+pkgrel=2
+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=('36051ac530ddb461a86b6227c4b09d95f30a1d1043de2b4a592e97ae8a84fcdf')
+
+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