# -*- 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-graphql-core
version             3.2.6
revision            0

categories-append   devel
platforms           {darwin any}
supported_archs     noarch
license             MIT
maintainers         nomaintainer

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.

distname            graphql_core-${version}

checksums           rmd160  739ee6efd7e2e21444c1d37fdc8dc4304cced331 \
                    sha256  c08eec22f9e40f0bd61d805907e3b3b1b9a320bc606e23dc145eebca07c8fbab \
                    size    505353

python.versions     313

if {${name} ne ${subport}} {
    patchfiles      patch-pyproject.toml.diff

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

    test.run        yes
    test.env-append PYTHONPATH=${destroot}${python.pkgd}
}
