# -*- 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-blinker
version             1.9.0
revision            0

license             MIT BSD
categories-append   devel
maintainers         {aronnax @lpsinger} openmaintainer
description         Fast, simple object-to-object and broadcast signaling
long_description \
    Blinker provides a fast dispatching system that allows any number of \
    interested parties to subscribe to events, or \"signals\". Signal \
    receivers can subscribe to specific senders or receive signals sent \
    by any sender.

platforms           {darwin any}
supported_archs     noarch

homepage            https://blinker.readthedocs.io

checksums           sha256  b4ce2265a7abece45e7cc896e98dbebe6cead56bcf805a3d23136d145f5445bf \
                    rmd160  302002b7e179d736d153892a765a1528a18e8abb \
                    size    22460

python.versions     27 310 311 312 313 314

if {${name} ne ${subport}} {
    if {${python.version} == 27} {
        version     1.4

        checksums   sha256  471aee25f3992bd325afa3772f1063dbdbbca947a041b8b89466dc00d606f8b6 \
                    rmd160  54a649ae37e54924ebfe75149c3d19b0d25aa1a4 \
                    size    111476

        depends_build-append \
                    port:py${python.version}-setuptools

        python.test_framework   nose
    } else {
        python.pep517_backend   flit

        depends_test-append \
                    port:py${python.version}-pytest-asyncio
    }

    test.run        yes

    livecheck.type  none
}
