[arch-commits] Commit in python-senf/repos (2 files)

Felix Yan felixonmars at gemini.archlinux.org
Fri Dec 3 00:31:06 UTC 2021


    Date: Friday, December 3, 2021 @ 00:31:06
  Author: felixonmars
Revision: 1063822

archrelease: copy trunk to community-staging-any

Added:
  python-senf/repos/community-staging-any/
  python-senf/repos/community-staging-any/PKGBUILD
    (from rev 1063820, python-senf/trunk/PKGBUILD)

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

Copied: python-senf/repos/community-staging-any/PKGBUILD (from rev 1063820, python-senf/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-12-03 00:31:06 UTC (rev 1063822)
@@ -0,0 +1,45 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=senf
+pkgname=python-senf
+pkgver=1.5.0
+pkgrel=4
+pkgdesc="Python module for handling platform native strings"
+arch=('any')
+url="https://github.com/quodlibet/senf"
+license=('MIT')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-hypothesis' 'python-pytest')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('4a474e3bb7ceae07980e27c4d86240b862ec829e7b73fdf0fb43cfd1529cdff7fa7839fa56c354bb37adc950e848612bfd6e90234c8d4a7c143e302361ac7fe4')
+
+prepare() {
+  mv -v "${_name}-${pkgver}" "${pkgname}-${pkgver}"
+  cd "$pkgname-$pkgver"
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  python setup.py build
+}
+
+check() {
+  cd "$pkgname-$pkgver"
+  export PYTHONPATH="build:${PYTHONPATH}"
+  # disabling failing tests, that assume a specific user HOME layout:
+  # https://github.com/quodlibet/senf/issues/12
+  pytest -v -k 'not test_getuserdir and not test_expanduser_user'
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+  python setup.py install --skip-build \
+    --optimize=1 \
+    --prefix=/usr \
+    --root="${pkgdir}"
+  install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -vDm 644 examples/*.py \
+    -t "${pkgdir}/usr/share/doc/${pkgname}/examples"
+}



More information about the arch-commits mailing list