summaryrefslogtreecommitdiffstats
path: root/linhes/python-requests-cache
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2022-11-30 23:14:27 (GMT)
committerBritney Fransen <brfransen@gmail.com>2022-11-30 23:14:27 (GMT)
commit42b7cdfc16505bf6994e0b0c454da40f3bd6be30 (patch)
tree4dd05c79519efb0e17434b2ac7989276c043e9ce /linhes/python-requests-cache
parent7fe52fda6fdd65ddc683f860fee93488fea06a55 (diff)
downloadlinhes_pkgbuild-42b7cdfc16505bf6994e0b0c454da40f3bd6be30.zip
linhes_pkgbuild-42b7cdfc16505bf6994e0b0c454da40f3bd6be30.tar.gz
linhes_pkgbuild-42b7cdfc16505bf6994e0b0c454da40f3bd6be30.tar.bz2
python-requests-cache: initial inclusion
Diffstat (limited to 'linhes/python-requests-cache')
-rw-r--r--linhes/python-requests-cache/PKGBUILD50
1 files changed, 50 insertions, 0 deletions
diff --git a/linhes/python-requests-cache/PKGBUILD b/linhes/python-requests-cache/PKGBUILD
new file mode 100644
index 0000000..f4d6929
--- /dev/null
+++ b/linhes/python-requests-cache/PKGBUILD
@@ -0,0 +1,50 @@
+# Maintainer: Jordan Cook <JCook83@gmail.com>
+# Maintainer: Carlos Aznarán <caznaranl@uni.pe>
+# Maintainer: Philipp A. <flying-sheep@web.de>
+# Contributor: Benoit Pierre <benoit.pierre@gmail.com>
+# Contributor: Simon Legner <Simon.Legner@gmail.com>
+# Contributor: Aniket Pradhan <aniket17133[at]iiitd[dot]ac[dot]in>
+# Contributor: Roman Haritonov <reclosedev[at]gmail[dot]com>
+_base=requests-cache
+pkgname=python-${_base}
+pkgdesc="A transparent persistent cache for the requests library"
+pkgver=0.9.7
+pkgrel=1
+arch=(any)
+url="https://github.com/reclosedev/${_base}"
+license=('custom:BSD-2-clause')
+depends=(python-requests python-appdirs python-cattrs python-url-normalize)
+makedepends=(python-poetry-core python-build python-installer python-wheel)
+optdepends=(
+ 'python-boto3: Cache backend for Amazon DynamoDB database'
+ 'python-botocore: Interface for Amazon Web Services'
+ 'python-pymongo: Cache backend for MongoDB database'
+ 'python-redis: Cache backend for Redis cache'
+ 'python-bson: for BSON codec'
+ 'python-itsdangerous: for pass trusted data to untrusted environments'
+ 'python-yaml: for bindings yaml support'
+ 'python-ujson: for JSON serializer for improved performance'
+)
+checkdepends=(python-pytest python-requests-mock python-responses python-itsdangerous python-ujson python-timeout-decorator)
+source=(${_base}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz)
+sha512sums=('00b2c7080030ed07f5d896871a431aec2625dab6ab84f01f7e6fea9e81692f757304e25ee6addbe7695e93d0c1c04484c31b95a71d7c9e12f6c23a5b7747ae30')
+
+build() {
+ cd ${_base}-${pkgver}
+ # Note: set `GIT_CEILING_DIRECTORIES` to prevent poetry
+ # from incorrectly using a parent git checkout info.
+ # https://github.com/pypa/build/issues/384#issuecomment-947675975
+ GIT_CEILING_DIRECTORIES="${PWD}/.." python -m build --wheel --skip-dependency-check --no-isolation
+}
+
+check() {
+ cd ${_base}-${pkgver}
+ # https://bugs.archlinux.org/task/75188
+ python -m pytest --ignore=tests/integration
+}
+
+package() {
+ cd ${_base}-${pkgver}
+ python -m installer --destdir="${pkgdir}" dist/*.whl
+ install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}