# -*- 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-core 3.2.1 v
revision            0
name                py-${github.project}
categories-append   devel

license             MIT
maintainers         nomaintainer
platforms           {darwin any}
supported_archs     noarch

description         GraphQL implementation for Python, a port of GraphQL.js.

long_description    GraphQL-core 3 is a Python 3.6+ port of \
                    GraphQL.js, the JavaScript reference \
                    implementation for GraphQL, a query language for \
                    APIs created by Facebook.

checksums           rmd160  e7d0d042a445ca9e2939d6c72b47bcf6e24c78fc \
                    sha256  3a77531f470e31200b0f69147434badf71dc390d4619a98575b284e0cc1fb0d3 \
                    size    524142

python.versions     37 38 39 310

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

    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
}
