# -*- 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-docker
version             7.1.0
revision            0

categories-append   devel
supported_archs     noarch
platforms           {darwin any}
license             Apache-2
maintainers         {emcrisostomo @emcrisostomo} \
                    openmaintainer

description         An API client for docker written in Python
long_description    {*}$description

homepage            https://github.com/docker/docker-py

checksums           rmd160  cc6514211f67d49045bddec6e9bdda6a71a6ad65 \
                    sha256  ad8c70e6e3f8926cb8a92619b832b4ea5299e2831c14284663184e200546fa6c \
                    size    117834

python.versions     310 311 312 313 314
python.pep517_backend \
                    hatch

if {${subport} ne ${name}} {
    depends_build-append \
                    port:py${python.version}-hatch-vcs

    depends_lib-append  \
                    port:py${python.version}-paramiko \
                    port:py${python.version}-requests \
                    port:py${python.version}-urllib3 \
                    port:py${python.version}-websocket-client

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

    test.run        yes

    post-destroot {
        xinstall -d ${destroot}${prefix}/share/doc/${subport}
        xinstall -m 0644 -W ${worksrcpath} LICENSE README.md \
            ${destroot}${prefix}/share/doc/${subport}
    }
}
