[arch-commits] Commit in (4 files)

David Runge dvzrv at archlinux.org
Tue Jan 14 22:37:46 UTC 2020


    Date: Tuesday, January 14, 2020 @ 22:37:45
  Author: dvzrv
Revision: 552540

Adding django-environ as checkdepends for python-django-guardian.

Added:
  python-django-environ/
  python-django-environ/repos/
  python-django-environ/trunk/
  python-django-environ/trunk/PKGBUILD

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

Added: python-django-environ/trunk/PKGBUILD
===================================================================
--- python-django-environ/trunk/PKGBUILD	                        (rev 0)
+++ python-django-environ/trunk/PKGBUILD	2020-01-14 22:37:45 UTC (rev 552540)
@@ -0,0 +1,40 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=django-environ
+pkgname=python-django-environ
+pkgver=0.4.5
+pkgrel=3
+pkgdesc="Utilize 12factor inspired environment variables to configure your Django application"
+arch=('any')
+url="https://github.com/joke2k/django-environ"
+license=('MIT')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('99dc88974194d17528b9b92d0fef2f87c331146879e0e25d4f64e1c87db76d85f5d902d2977bb2f55bf9208d120814a1afa15cb857f2228dfa3c5a03aa6db7c1')
+
+prepare() {
+  mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  python setup.py build
+}
+
+check() {
+  cd "$pkgname-$pkgver"
+  export PYTHONPATH="${PWD}/build:${PYTHONPATH}"
+  python setup.py test
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+  python setup.py install --skip-build \
+    --optimize=1 \
+    --prefix=/usr \
+    --root="${pkgdir}"
+  install -vDm 644 {AUTHORS,CHANGELOG,README}.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -vDm 644 LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}



More information about the arch-commits mailing list