# -*- 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-hcloud
version             2.3.0
revision            0

supported_archs     noarch
platforms           {darwin any}
license             MIT
maintainers         {judaew @judaew} openmaintainer

description         ${name} is a library for the Hetzner Cloud API.
long_description    {*}${description}
homepage            https://github.com/hetznercloud/hcloud-python

checksums           rmd160  f5c821491a8bd89bfc8e90ab66a4e321bdd75354 \
                    sha256  e901d298b112f1d2d4568d8300f3ce19dfe782bdef3ff9c417026a81e16ee956 \
                    size    121684

python.versions     39 310 311 312

if {${name} ne ${subport}} {
    depends_run-append \
                    port:py${python.version}-dateutil \
                    port:py${python.version}-future \
                    port:py${python.version}-requests

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

    test.run        yes
}
