Date: Thursday, April 6, 2023 @ 12:05:35
Author: felixonmars
Revision: 1438620
archrelease: copy trunk to community-staging-any
Added:
python-httpretty/repos/community-staging-any/
python-httpretty/repos/community-staging-any/PKGBUILD
(from rev 1438619, python-httpretty/trunk/PKGBUILD)
----------+
PKGBUILD | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
Copied: python-httpretty/repos/community-staging-any/PKGBUILD (from rev
1438619, python-httpretty/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-06 12:05:35 UTC (rev 1438620)
@@ -0,0 +1,27 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-httpretty
+pkgver=1.1.4
+pkgrel=4
+pkgdesc="HTTP client mock for Python"
+arch=('any')
+url="https://github.com/gabrielfalcao/httpretty"
+license=('MIT')
+depends=('python-urllib3')
+makedepends=('python-setuptools')
+checkdepends=('python-nose' 'python-coverage' 'python-eventlet'
'python-freezegun' 'python-httplib2'
+ 'python-redis' 'python-rednose' 'python-requests' 'python-sure'
'python-tornado'
+ 'python-httpx' 'python-boto3')
+source=("https://github.com/gabrielfalcao/HTTPretty/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('58c733ba4719f97e06e2313bb6b94f1c6609d3facb2e0262ac37be97f1c3430eac661611ba9b3712c9c1809846e177b61f3fc2945f3770d475f70b81bea2aced')
+
+check() {
+ cd HTTPretty-$pkgver
+ nosetests3 -s tests
+}
+
+package_python-httpretty() {
+ cd HTTPretty-$pkgver
+ python3 setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}