mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-15 20:25:17 +03:00
34 lines
1.1 KiB
Text
34 lines
1.1 KiB
Text
# Contributor: Haelwenn (lanodan) Monnier <contact+alpine@hacktivis.me>
|
|
# Maintainer: Haelwenn (lanodan) Monnier <contact+alpine@hacktivis.me>
|
|
pkgname=py3-mastodon.py
|
|
_pkgreal=Mastodon.py
|
|
pkgver=1.8.0
|
|
pkgrel=0
|
|
pkgdesc="Python wrapper for the Mastodon API"
|
|
url="https://github.com/halcy/Mastodon.py"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="python3 py3-requests py3-dateutil py3-six py3-magic py3-decorator py3-http-ece py3-cryptography py3-blurhash"
|
|
checkdepends="python3-dev py3-pytest py3-pytest-runner py3-pytest-cov py3-vcrpy py3-pytest-vcr py3-pytest-mock py3-requests-mock py3-tz tzdata"
|
|
makedepends="py3-setuptools"
|
|
source="https://files.pythonhosted.org/packages/source/${_pkgreal:0:1}/$_pkgreal/$_pkgreal-$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pkgreal-$pkgver"
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
python3 setup.py test
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install \
|
|
--prefix=/usr \
|
|
--root="$pkgdir" \
|
|
--single-version-externally-managed
|
|
}
|
|
|
|
sha512sums="
|
|
497cdb42adeceeea6f65210daf94eff0c6ce26b286fabc13976c8276649b6b6f51f47b4e99733133c60dc373fcbb0b0760a20ff526d8435391c43e8f06666696 Mastodon.py-1.8.0.tar.gz
|
|
"
|