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

Evangelos Foutras foutrelis at gemini.archlinux.org
Wed Dec 1 14:56:50 UTC 2021


    Date: Wednesday, December 1, 2021 @ 14:56:50
  Author: foutrelis
Revision: 1059582

archrelease: copy trunk to community-staging-any

Added:
  python-requests-mock/repos/community-staging-any/
  python-requests-mock/repos/community-staging-any/PKGBUILD
    (from rev 1059580, python-requests-mock/trunk/PKGBUILD)

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

Copied: python-requests-mock/repos/community-staging-any/PKGBUILD (from rev 1059580, python-requests-mock/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-12-01 14:56:50 UTC (rev 1059582)
@@ -0,0 +1,32 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-requests-mock
+pkgver=1.9.3
+pkgrel=2
+pkgdesc="A mock of useful classes and functions to be used with python-requests."
+arch=('any')
+url="https://github.com/jamielennox/requests-mock"
+license=('Apache')
+depends=('python-requests' 'python-six')
+makedepends=('python-pbr')
+checkdepends=('python-mock' 'python-purl' 'python-pytest' 'python-testrepository')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/jamielennox/requests-mock/archive/$pkgver.tar.gz")
+sha512sums=('98b43739055b192606eb7f1823b610adaaa6573719c5e5cf01ce07e83e04e22d1109e1c124f3f8d8595cf2ee79de9725e6f9a2f6c663aa22c872fb65821c46d9')
+
+export PBR_VERSION=$pkgver
+
+build() {
+  cd requests-mock-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd requests-mock-$pkgver
+  python -m pytest tests/pytest
+  python setup.py testr
+}
+
+package() {
+  cd requests-mock-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}



More information about the arch-commits mailing list