mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-04-08 07:11:45 +02:00
38 lines
1.0 KiB
Plaintext
38 lines
1.0 KiB
Plaintext
# Contributor:
|
|
# Maintainer:
|
|
pkgname=py3-diskcache
|
|
pkgver=5.6.1
|
|
pkgrel=0
|
|
pkgdesc="disk caching implementation"
|
|
options="!check" # test_incr_update_keyerror fails
|
|
url="http://www.grantjenks.com/docs/diskcache/"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="python3"
|
|
makedepends="py3-setuptools"
|
|
checkdepends="py3-pytest py3-pytest-xdist py3-mock py3-django"
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/grantjenks/python-diskcache/archive/v$pkgver.tar.gz"
|
|
builddir="$srcdir"/python-diskcache-$pkgver
|
|
|
|
replaces="py-diskcache" # Backwards compatibility
|
|
provides="py-diskcache=$pkgver-r$pkgrel" # Backwards compatibility
|
|
|
|
build() {
|
|
export SETUPTOOLS_USE_DISTUTILS=stdlib
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
export SETUPTOOLS_USE_DISTUTILS=stdlib
|
|
python3 setup.py install --skip-build --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
a0a6847121089ffe727ec30bd94716d6ab78e5abd4cc8a3230c6ef034b27776be76ca223c3060af3150d2fceadcda670cbf7851c0f47624264342429b29b4f5d py3-diskcache-5.6.1.tar.gz
|
|
"
|