# -*- 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-gpstime
version             0.8.2
revision            0

supported_archs     noarch
platforms           {darwin any}
license             GPL-3+
maintainers         {gmail.com:stefan.countryman @stefco} openmaintainer

description         GPS-aware datetime module with leap-second fetching
long_description    This package provides a gpstime package, including a \
                    gpstime subclass of the built-in datetime class with the \
                    addition of GPS access and conversion methods.  Leap \
                    second data is provided by the ietf_leap_seconds module \
                    that helps automatically maintain a local copy of the \
                    IETF leap second list: \
                    https://www.ietf.org/timezones/data/leap-seconds.list \
                    A command-line GPS data conversion utility that uses the \
                    gpstime module is also included.  It is a rough \
                    work-alike to tconvert.

homepage            https://git.ligo.org/cds/${python.rootname}

checksums           rmd160  e34a5fbf17148119070148673d2ae955f7a53c90 \
                    sha256  d5912ac85452d5b02593149f9d0bdc551a477514a9442536ff52c3d160984afe \
                    size    22617

python.versions     312

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

    depends_lib-append \
                    port:py${python.version}-appdirs \
                    port:py${python.version}-dateutil \
                    port:py${python.version}-requests
}
