# -*- 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-priority
version             2.0.0
revision            0

description         A pure Python implementation of the HTTP/2 priority tree

long_description    {*}${description}

platforms           {darwin any}
supported_archs     noarch
license             MIT
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

homepage            https://pypi.org/project/priority/

checksums           rmd160  bb0d75570ff36f08b68163350fc3b73c6189c19b \
                    sha256  c965d54f1b8d0d0b19479db3924c7c36cf672dbf2aec92d43fbdaf4492ba18c0 \
                    size    24792

python.versions     38 39

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

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

    test.run        yes
    test.dir        ${build.dir}/test
    test.cmd        py.test-${python.branch} test_priority.py
    test.target
    test.env        PYTHONPATH=${worksrcpath}/build/lib
}
