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

Felix Yan felixonmars at gemini.archlinux.org
Tue Nov 30 20:21:56 UTC 2021


    Date: Tuesday, November 30, 2021 @ 20:21:56
  Author: felixonmars
Revision: 1058114

archrelease: copy trunk to community-staging-any

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

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

Copied: python-characteristic/repos/community-staging-any/PKGBUILD (from rev 1058106, python-characteristic/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-11-30 20:21:56 UTC (rev 1058114)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-characteristic
+pkgver=14.3.0
+pkgrel=14
+pkgdesc="Python attributes without boilerplate."
+arch=('any')
+license=('MIT')
+url="https://pypi.python.org/pypi/characteristic"
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner')
+source=("https://files.pythonhosted.org/packages/source/c/characteristic/characteristic-$pkgver.tar.gz"{,.asc})
+md5sums=('b249368dd021fde1c06b4802867c0913'
+         'SKIP')
+validpgpkeys=('C2A04F86ACE28ADCF817DBB7AE2536227F69F181') # Hynek Schlawack <hs at ox.cx>
+
+prepare() {
+  sed -i 's/\[pytest\]/[tool:pytest]/' characteristic-$pkgver/setup.cfg
+}
+
+build() {
+  cd "$srcdir"/characteristic-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd "$srcdir"/characteristic-$pkgver
+  python setup.py test
+}
+
+package_python-characteristic() {
+  cd characteristic-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}



More information about the arch-commits mailing list