mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-26 08:51:25 +02:00
33 lines
850 B
Plaintext
33 lines
850 B
Plaintext
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
|
|
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
|
|
pkgname=py3-cachetools
|
|
_pkgname=cachetools
|
|
pkgver=2.1.0
|
|
pkgrel=0
|
|
pkgdesc="Extensible memoizing collections and decorators"
|
|
url="https://github.com/tkem/cachetools"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="python3"
|
|
checkdepends="py3-pytest"
|
|
makedepends="python3-dev"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/tkem/cachetools/archive/v$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pkgname-$pkgver"
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
cd "$builddir"
|
|
python3 -m pytest .
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
python3 setup.py install --prefix=/usr --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="359f0b57c34af96d4c8cfac19daa591e357db19c592ce89449001593f3044affb6e6109e1d2b63666dd8c95c6c496387032759d2ef01e5d5ae93eef39df15d72 py3-cachetools-2.1.0.tar.gz"
|