# Compiling Time: 0.68 SBU
# Maintainer: Melko <melko@frugalware.org>

pkgname=python3-cython0
pkgver=0.29.37
pkgrel=2
pkgdesc="C-Extensions for Python (legacy)"
url="http://www.cython.org"
depends=('python3>=3.11')
makedepends=("python3-build" "python3-installer" 'python3-setuptools' 'python3-wheel')
groups=('devel')
archs=('x86_64')
_F_pypi_name="Cython"
_F_archive_grepv="3\."
Finclude pypi
source+=(cython0-python313.patch)
sha1sums=('8dadf6ddf4410173c1bc3932ea10e8fdf09ab4f9' \
          '55162d91a1ee37b397dc2a9a34582085b6295279')

conflicts=('python3-cython')
provides=('python3-cython')

build() {
        Fcd
	Fpatchall

        Fexec python3 -m build --wheel --no-isolation || Fdie
        Fexec python3 -m installer --destdir="$Fdestdir" dist/*.whl || Fdie
}

# optimization OK
