# -*- 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-amqp
version             5.3.1
revision            0
categories-append   devel
license             BSD
supported_archs     noarch
platforms           {darwin any}

python.versions     310 311 312 313 314

maintainers         {stromnov @stromnov} openmaintainer

description         Low-level AMQP client for Python (fork of amqplib).
long_description    {*}${description}

homepage            https://github.com/celery/py-amqp

checksums           rmd160  f0bcb812dbf6d09eb70af2673fc77d8171e22741 \
                    sha256  cddc00c725449522023bad949f70fff7b48f0b1ade74d170a6f10ab044739432 \
                    size    129013

if {${name} ne ${subport}} {
    depends_lib-append  port:py${python.version}-vine

    variant speedups description {Enable Celery speedups} {
        depends_build-append    port:py${python.version}-cython
        configure.env-append    CELERY_ENABLE_SPEEDUPS=1
        build.env-append        CELERY_ENABLE_SPEEDUPS=1
        destroot.env-append     CELERY_ENABLE_SPEEDUPS=1
    }
}
