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

Felix Yan felixonmars at archlinux.org
Thu Nov 12 17:12:35 UTC 2020


    Date: Thursday, November 12, 2020 @ 17:12:35
  Author: felixonmars
Revision: 752345

archrelease: copy trunk to community-staging-any

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

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

Copied: python-whitenoise/repos/community-staging-any/PKGBUILD (from rev 752341, python-whitenoise/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-12 17:12:35 UTC (rev 752345)
@@ -0,0 +1,30 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-whitenoise
+pkgver=5.2.0
+pkgrel=2
+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=('e68f89c6af86ffaee8931196a5714a47057b4d750b75053042007229ef390b287144a2d10376dbf232168277fc95ba4a40c128acd349242d041e6f5f39e92055')
+
+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