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

Evangelos Foutras foutrelis at gemini.archlinux.org
Tue Nov 30 21:41:56 UTC 2021


    Date: Tuesday, November 30, 2021 @ 21:41:56
  Author: foutrelis
Revision: 1058933

archrelease: copy trunk to community-staging-any

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

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

Copied: python-freezegun/repos/community-staging-any/PKGBUILD (from rev 1058932, python-freezegun/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-11-30 21:41:56 UTC (rev 1058933)
@@ -0,0 +1,30 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-freezegun
+pkgver=0.3.15
+pkgrel=7
+pkgdesc="Let your Python tests travel through time"
+arch=('any')
+license=('Apache')
+url="https://github.com/spulec/freezegun"
+depends=('python-dateutil')
+makedepends=('python-setuptools' 'python-dateutil')
+checkdepends=('python-pytest')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/spulec/freezegun/archive/$pkgver.tar.gz")
+sha512sums=('7b89fa2ba56cbcf274e33eea868d8f3653b0f2c47e91b1df9f72b65a0f1cb04f6364a00d9666afbc629707c5eaa238f36e9ef36b79dacd74d7fd00faea4a1a29')
+
+build() {
+  cd "$srcdir"/freezegun-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd "$srcdir"/freezegun-$pkgver
+  # https://github.com/spulec/freezegun/issues/250
+  pytest || echo "Tests failed"
+}
+
+package() {
+  cd freezegun-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}



More information about the arch-commits mailing list