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

license             MIT
maintainers         nomaintainer
platforms           darwin
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  6ce1b7d6fb3906c95a395e0b203298f9abe971ca \
                    sha256  8659163237bbf732f6daf7d39ebbe0134725264406a7c6c53e66745258491c01 \
                    size    496252

python.versions     37 38 39

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
}
