[arch-commits] Commit in python-lazr.delegates/repos (2 files)
Felix Yan
felixonmars at gemini.archlinux.org
Tue Nov 30 21:42:49 UTC 2021
Date: Tuesday, November 30, 2021 @ 21:42:49
Author: felixonmars
Revision: 1058957
archrelease: copy trunk to community-staging-any
Added:
python-lazr.delegates/repos/community-staging-any/
python-lazr.delegates/repos/community-staging-any/PKGBUILD
(from rev 1058954, python-lazr.delegates/trunk/PKGBUILD)
----------+
PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
Copied: python-lazr.delegates/repos/community-staging-any/PKGBUILD (from rev 1058954, python-lazr.delegates/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2021-11-30 21:42:49 UTC (rev 1058957)
@@ -0,0 +1,40 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=lazr.delegates
+pkgname=python-lazr.delegates
+pkgver=2.0.4
+pkgrel=7
+pkgdesc="Easily write objects that delegate behavior"
+arch=('any')
+url="https://launchpad.net/lazr.delegates"
+license=('GPL')
+# pkg_resources is used to declare namespaces
+depends=('python-nose' 'python-setuptools' 'python-zope-interface')
+checkdepends=('python-pytest')
+provides=('python-lazr-delegates')
+replaces=('python-lazr-delegates')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz"{,.asc})
+sha512sums=('0c0b32a4fa4c132646d601870be0f0c1f1856aceb91bf979faa9a675fcbf94f76c7c6f548978a402842633cf4e53275c052cff7dfd776a4246691c067eabe501'
+ 'SKIP')
+validpgpkeys=('AC0A4FF12611B6FCCF01C111393587D97D86500B')
+
+prepare() {
+ mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
+}
+
+build() {
+ cd "$pkgname-$pkgver"
+ python setup.py build
+}
+
+check() {
+ cd "$pkgname-$pkgver"
+ export PYTHONPATH="build:${PYTHONPATH}"
+ pytest -v
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+ python setup.py install --optimize=1 --root="${pkgdir}"
+ install -vDm 644 {HACKING,README}.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+}
More information about the arch-commits
mailing list