# -*- 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

name                py-time-machine
github.setup        adamchainz time-machine 3.5.0
github.tarball_from archive
revision            0
maintainers         nomaintainer
platforms           {darwin any}
license             MIT

description         A tool for mocking the time in tests
long_description    ${description}

homepage            https://github.com/adamchainz/time-machine

checksums           rmd160  25fa33e6cfe5dcabf8678e4b6a51ae8eaff2b8ab \
                    sha256  80820f4c4fe4232304b6af9bcf93de7c43a4f0db193bc352c8d5b36cea979ad1 \
                    size    134115

python.versions     310 311 312 313 314 315

if {$subport ne $name} {
    depends_lib-append \
                    port:py${python.version}-tokenize-rt

    test.run        yes
    depends_test-append \
                    port:py${python.version}-dateutil \
                    port:py${python.version}-freezegun \
                    port:py${python.version}-hypothesis
    test.args       -o addopts="-p pytester"
}
