# -*- 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           github 1.0
PortGroup           python 1.0

github.setup        graphql-python graphql-relay-py 3.1.0 v
revision            0
name                py-[strsed ${github.project} {s|-py$||}]
categories-append   devel

license             MIT
maintainers         nomaintainer
platforms           darwin
supported_archs     noarch

description         Relay library for graphql-core.

long_description    GraphQL-relay-py is the Relay library for \
                    GraphQL-core. It allows the easy creation of \
                    Relay-compliant servers using GraphQL-core.

checksums           rmd160  75397a0bac78bc416366e7b2e02434f28dcbde34 \
                    sha256  55748436f32e18c2f7e60117c7201c97d2a403502cdbbb8ece9cebb746e642e0 \
                    size    42475

python.versions     37 38 39

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

    depends_run-append \
                    port:py${python.version}-graphql-core \
                    port:py${python.version}-typing_extensions

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

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

    livecheck.type  none
}
