Date: Saturday, April 8, 2023 @ 08:04:56
Author: felixonmars
Revision: 1442153
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 1442151, python-requests-mock/trunk/PKGBUILD)
----------+
PKGBUILD | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
Copied: python-requests-mock/repos/community-staging-any/PKGBUILD (from rev
1442151, python-requests-mock/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-08 08:04:56 UTC (rev 1442153)
@@ -0,0 +1,33 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-requests-mock
+pkgver=1.10.0
+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-requests-futures'
+ 'python-testrepository')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/jamielennox/requests-mock/archive/$pkgver.tar.gz")
+sha512sums=('24e34407651a14d89ce24b4fcd32556d7a522c02a3855466c6523c45e88dbc751d560478cc9af1eafc903dc8fdfc8715e1effedd116e33dee96063c980050560')
+
+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
+}