Date: Friday, October 25, 2019 @ 15:39:54
  Author: felixonmars
Revision: 519144

archrelease: copy trunk to community-staging-any

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

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

Copied: python-utils/repos/community-staging-any/PKGBUILD (from rev 519142, 
python-utils/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2019-10-25 15:39:54 UTC (rev 519144)
@@ -0,0 +1,45 @@
+# Maintainer: David Runge <[email protected]>
+# Contributor: Maxim Andersson <[email protected]>
+# Contributor: NicoHood <archlinux {cat} nicohood {dog} de>
+
+pkgdesc="A module with some convenient utilities not included with the 
standard Python install"
+pkgname=python-utils
+pkgver=2.3.0
+pkgrel=5
+url="https://github.com/WoLpH/python-utils";
+license=('BSD')
+arch=('any')
+depends=('python-six')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner')
+source=("https://pypi.org/packages/source/p/${pkgname}/${pkgname}-${pkgver}.tar.gz"{,.asc})
+sha512sums=('482ccf9c635a0cbe603b69488a364d9033f8b7fada279d901725b5bf91ac13b1cd4a6b7e8d5834a9355d97d8b0803397d5e13da2b7ba72f8d8e2f7f39fee027a'
+            'SKIP')
+validpgpkeys=('149325FD15904E9C4EB89E95E81444E9CE1F695D') # Rick van Hattem 
<[email protected]>
+
+prepare() {
+  cd "${pkgname}-${pkgver}"
+  # don't care about custom pytest flags
+  rm -v pytest.ini
+}
+
+build() {
+  cd "${pkgname}-${pkgver}"
+  python setup.py build
+}
+
+check() {
+  cd "${pkgname}-${pkgver}"
+  export PYTHONPATH="${PWD}/build:${PYTHONPATH}"
+  py.test
+}
+
+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}"
+}

Reply via email to