[arch-commits] Commit in python-httpretty/repos/community-any (PKGBUILD PKGBUILD)

Felix Yan felixonmars at archlinux.org
Thu May 20 01:02:28 UTC 2021


    Date: Thursday, May 20, 2021 @ 01:02:28
  Author: felixonmars
Revision: 937382

archrelease: copy trunk to community-any

Added:
  python-httpretty/repos/community-any/PKGBUILD
    (from rev 937381, python-httpretty/trunk/PKGBUILD)
Deleted:
  python-httpretty/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   60 ++++++++++++++++++++++++++++++++++--------------------------
 1 file changed, 34 insertions(+), 26 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-05-20 01:02:20 UTC (rev 937381)
+++ PKGBUILD	2021-05-20 01:02:28 UTC (rev 937382)
@@ -1,26 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=python-httpretty
-pkgver=1.1.0
-pkgrel=1
-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')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/gabrielfalcao/HTTPretty/archive/$pkgver.tar.gz")
-sha512sums=('055528188d43b4463f758d1d94f10125f62150cf327b086d28eb81abcc850a356fa5eaed03e6a4e0a98af96fc4aaf5df86f362b78e17769b094fe72eb537af2e')
-
-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
-}

Copied: python-httpretty/repos/community-any/PKGBUILD (from rev 937381, python-httpretty/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-05-20 01:02:28 UTC (rev 937382)
@@ -0,0 +1,34 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-httpretty
+pkgver=1.1.1
+pkgrel=1
+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"
+        $pkgname-issue417-test-fix.patch::https://github.com/gabrielfalcao/HTTPretty/commit/5878dde4211c97392d89db221bf3ff59b6c18274.patch)
+sha512sums=('526ef3de30a7227924ccef68cbe0c679d640bf31852b10e518798dbc7eb7c8390b112962f4f51c5a3157184dce3b145120e7a1750fe22f719247e3c86fc27f58'
+            'c57e4c796b99784627587b196e1e4cf07f7bda5f050d75ed469b806417b13fbe6106fc604e3d3d94ad836a0afea2af5e337cee9f6bd84ae9b190718c8e57de39')
+
+prepare() {
+  # https://github.com/gabrielfalcao/HTTPretty/pull/427
+  patch -d HTTPretty-$pkgver -p1 < $pkgname-issue417-test-fix.patch
+}
+
+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
+}



More information about the arch-commits mailing list