mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 03:35:38 +03:00
this marginally increases install speed by not checking if it needs a rebuild. also remove --prefix=/usr as it defaults to /usr already. might break a build or two, will fix later
36 lines
1,008 B
Text
36 lines
1,008 B
Text
# Contributor:
|
|
# Maintainer:
|
|
pkgname=py3-diskcache
|
|
pkgver=5.4.0
|
|
pkgrel=1
|
|
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"
|
|
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="
|
|
cc15ff0b06b2a5708692f50e185699bd53e60408cef25053bcb5aaffec2795dd53c3bfe4b131a47f68c43388927ecc034c43233c38494cb2f6e40636344270fc py3-diskcache-5.4.0.tar.gz
|
|
"
|