Files
macports-ports/python/py-docker/Portfile
2025-12-02 11:51:36 -05:00

53 lines
1.7 KiB
Tcl

# -*- 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
PortGroup github 1.0
github.setup docker docker-py 5.0.3
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
revision 0
name py-docker
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
checksums rmd160 96de2c178103e03a8ffa43156df5083972053c77 \
sha256 bb01ff312c81ea89d7a9f558375455dc0a8227f5411f26235bfa4e73f833c5c4 \
size 247141
python.versions 310 311
if {${subport} ne ${name}} {
depends_lib-append \
port:py${python.version}-paramiko \
port:py${python.version}-requests \
port:py${python.version}-six \
port:py${python.version}-websocket-client
depends_test-append \
port:py${python.version}-mock \
port:py${python.version}-pytest-timeout
pre-test {
# See https://docs.pytest.org/en/stable/pythonpath.html
delete ${test.dir}/${test.target}/__init__.py
}
test.run yes
post-destroot {
xinstall -d ${destroot}${prefix}/share/doc/${subport}
xinstall -m 0644 -W ${worksrcpath} CONTRIBUTING.md LICENSE \
MAINTAINERS README.md ${destroot}${prefix}/share/doc/${subport}
}
}