# -*- 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.1.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  61fc1c59cd52109334787a5cfb813ff493eb754d \
                    sha256  5ccc9add7f678a2652249d12efea446db0540acc90240ae9327d2fdcbba4f920 \
                    size    75765

python.versions     310 311 312 313 314

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

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