1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-22 18:55:29 +03:00
aports/community/py3-django-model-utils/APKBUILD

39 lines
929 B
Text

# Contributor: Alex Denes <caskd@redxen.eu>
# Maintainer: Alex Denes <caskd@redxen.eu>
_pkgname=django-model-utils
pkgname="py3-$_pkgname"
pkgver=4.3.1
pkgrel=0
pkgdesc="Django model mixins and utilities"
url="https://github.com/jazzband/django-model-utils"
arch="noarch"
license="BSD-3-Clause"
depends="
py3-django
"
makedepends="py3-setuptools_scm"
checkdepends="
py3-pytest
py3-pytest-django
py3-psycopg2
py3-pytest-cov
"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
options="!check" # requires py3-pytest-django
builddir="$srcdir/$_pkgname-$pkgver"
build() {
python3 setup.py build
}
check() {
python3 setup.py test
}
package() {
python3 setup.py install --root "$pkgdir"
}
sha512sums="
8271b52bb5c1dec691ad4f2b36ae8929a68d30be1467c453b4b5b86204394ab48c4f945900bc037f810f008a637618fbae2f03342b5d8e68e8644b6002c5da59 django-model-utils-4.3.1.tar.gz
"