# Contributor: prspkt <prspkt@protonmail.com>
# Maintainer: prspkt <prspkt@protonmail.com>
pkgname=py3-constantly
_pkgname=constantly
pkgver=23.10.4
pkgrel=1
pkgdesc="Library that provides symbolic constant support"
url="https://github.com/twisted/constantly"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools py3-python-versioneer"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

replaces="py-constantly" # Backwards compatibility
provides="py-constantly=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
14c99ec39cf5ec588d24818ca56909ed59c646093fbf1d061a8a6e6bec8e7258c64dafd346e0dbb8aeef35260fe1e03efa649150b60b1fd3e7865fa59e96ce49  constantly-23.10.4.tar.gz
"
