34 lines
1.1 KiB
Plaintext

# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-logilab-common
_pkgname=logilab-common
pkgver=1.8.3
pkgrel=0
pkgdesc="A collection of Python3 packages and modules used by Logilab projects"
url="https://www.logilab.org/project/logilab-common"
arch="noarch"
license="LGPL-2.0-or-later"
depends="python3 py3-mypy-extensions py3-setuptools py3-typing-extensions"
checkdepends="py3-tz"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver
replaces="py-logilab-common" # Backwards compatibility
provides="py-logilab-common=$pkgver-r$pkgrel" # Backwards compatibility
build() {
python3 setup.py build
}
check() {
PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python3 bin/logilab-pytest
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="
0c7d4228f86da5840d7a16268aeb68e06f055c3fa61c6dc5382a1f9ee47077c6f2178497adf9341b2a9b42e351d92a8954f85f6a329af4903f15226144a67f44 logilab-common-1.8.3.tar.gz
"