[arch-commits] Commit in (4 files)

Jonas Witschel diabonas at gemini.archlinux.org
Mon Mar 14 10:10:08 UTC 2022


    Date: Monday, March 14, 2022 @ 10:10:07
  Author: diabonas
Revision: 1152223

newpkg: python-mpris2 (optdepends for py3status)

Unfortunately the source distribution on PyPI does not contain tests, so use a
pinned commit of the GitHub repository instead (there are no tags corresponding
to the releases either).

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

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

Added: python-mpris2/trunk/PKGBUILD
===================================================================
--- python-mpris2/trunk/PKGBUILD	                        (rev 0)
+++ python-mpris2/trunk/PKGBUILD	2022-03-14 10:10:07 UTC (rev 1152223)
@@ -0,0 +1,29 @@
+# Maintainer: Jonas Witschel <diabonas at archlinux.org>
+pkgname=python-mpris2
+pkgver=1.0.2
+_commit=67356f29d68e29c7f3f0ddda5aaad6f68899b2bd
+pkgrel=1
+pkgdesc='Python usable definiton of MPRIS2'
+arch=('any')
+url='https://github.com/hugosenari/mpris2'
+license=('GPL')
+depends=('python' 'python-dbus')
+makedepends=('git' 'python-build' 'python-installer' 'python-setuptools' 'python-wheel')
+checkdepends=('python-pytest')
+source=("git+$url.git#commit=$_commit")
+sha512sums=('SKIP')
+
+build() {
+	cd "${pkgname#python-}"
+	python -m build --wheel --no-isolation
+}
+
+check() {
+	cd "${pkgname#python-}"
+	pytest
+}
+
+package() {
+	cd "${pkgname#python-}"
+	python -m installer --destdir="$pkgdir" dist/*.whl
+}



More information about the arch-commits mailing list