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

Felix Yan felixonmars at archlinux.org
Wed Jan 8 10:30:59 UTC 2020


    Date: Wednesday, January 8, 2020 @ 10:30:58
  Author: felixonmars
Revision: 550202

archrelease: copy trunk to community-testing-any

Added:
  python-whitenoise/repos/community-testing-any/
  python-whitenoise/repos/community-testing-any/PKGBUILD
    (from rev 550201, python-whitenoise/trunk/PKGBUILD)

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

Copied: python-whitenoise/repos/community-testing-any/PKGBUILD (from rev 550201, python-whitenoise/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2020-01-08 10:30:58 UTC (rev 550202)
@@ -0,0 +1,30 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-whitenoise
+pkgver=5.0.1
+pkgrel=1
+pkgdesc='Radically simplified static file serving for WSGI applications'
+arch=('any')
+license=('MIT')
+url='http://whitenoise.evans.io'
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-brotli' 'python-django' 'python-pytest' 'python-requests')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/evansd/whitenoise/archive/v$pkgver.tar.gz")
+sha512sums=('5f334e6a84bbf09175b6a7f3d06f6928ea336150b9c268ebd8ea60128293f1586a7475497de642e17b4baed6bffb2ba12f3c3f58f08e4627cdc992fa61cf3a7b')
+
+build() {
+  cd whitenoise-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd whitenoise-$pkgver
+  DJANGO_SETTINGS_MODULE=tests.django_settings pytest
+}
+
+package() {
+  cd whitenoise-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list