# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           python 1.0

name                py-aesara
version             2.9.4
revision            0

categories-append   devel
supported_archs     noarch
platforms           {darwin any}
license             BSD
maintainers         {reneeotten @reneeotten} openmaintainer

description         Optimizing compiler for evaluating mathematical expressions \
                    on CPUs and GPUs.
long_description    {*}${description}

homepage            https://github.com/aesara-devs/aesara

checksums           rmd160  db7f30f99552c65d0375c27d773e6509ecc536cb \
                    sha256  704eecf24a0165b2eefcf23539eb0f0c5973081ee3b9ecd8a97b80e1f301ad7a \
                    size    4424643

python.versions     310 311 312
python.pep517_backend   hatch

patchfiles-append   patch-pyproject.toml.diff

if {${name} ne ${subport}} {
    depends_build-append \
                    port:py${python.version}-hatch-vcs

    depends_lib-append \
                    port:py${python.version}-numpy \
                    port:py${python.version}-scipy \
                    port:py${python.version}-filelock \
                    port:py${python.version}-etuples \
                    port:py${python.version}-logical-unification \
                    port:py${python.version}-minikanren \
                    port:py${python.version}-cons \
                    port:py${python.version}-typing_extensions

    post-destroot {
        file delete ${destroot}${python.pkgd}/bin/__init__.py
        delete ${destroot}${python.pkgd}/bin/__pycache__
    }
}
