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

Felix Yan felixonmars at gemini.archlinux.org
Wed Dec 8 23:41:59 UTC 2021


    Date: Wednesday, December 8, 2021 @ 23:41:59
  Author: felixonmars
Revision: 1065724

archrelease: copy trunk to community-staging-any

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

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

Copied: python-whitenoise/repos/community-staging-any/PKGBUILD (from rev 1065723, python-whitenoise/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-12-08 23:41:59 UTC (rev 1065724)
@@ -0,0 +1,37 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-whitenoise
+pkgver=5.3.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"
+        $pkgname-requests-2.26.0.patch::https://github.com/evansd/whitenoise/pull/294.patch)
+sha512sums=('480098a4f4ad313f0346d72f1eca5ee2f571056077edcf07f40f37356043663fc1fa99c7a33f840c176c74ee9894a99e15828ecadae944dc0c9445034aef2cb4'
+            '8d8b1e028945bbe127dfd16999b6f7060b4f9e10d44f931974892c6b7f02e94d78e812301f33eed3c3d39b4fa282901ec076940431925181ad04f67908720c37')
+
+prepare() {
+  cd whitenoise-$pkgver
+  patch -Np1 -i ../$pkgname-requests-2.26.0.patch
+}
+
+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