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

name                py-beancount-import
github.setup        jbms beancount-import 1.4.0 v
github.tarball_from archive
revision            0

categories-append   finance
supported_archs     noarch
platforms           {darwin any}
license             GPL-2
maintainers         {wholezero.org:macports @mrdomino} openmaintainer

description         Semi-automatic imports of financial data into Beancount
long_description    Beancount-import is a tool for semi-automatically importing \
                    financial data from external data sources into the \
                    Beancount bookkeeping system, as well as merging and \
                    reconciling imported transactions with each other and with \
                    existing transactions.
homepage            https://github.com/jbms/beancount-import

checksums           rmd160  fb1935dcdbece685e9d7555c8cfd3b17bacce794 \
                    sha256  c80e7e7086946c2de6068d7c25d3b04cbda55ab6812feedc144acbfe2b49dedd \
                    size    899174

python.versions     313

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

    depends_lib-append \
                    port:py${python.version}-atomicwrites \
                    port:py${python.version}-beancount \
                    port:py${python.version}-dateutil \
                    port:py${python.version}-cachetools \
                    port:py${python.version}-jsonschema \
                    port:py${python.version}-nltk \
                    port:py${python.version}-numpy \
                    port:py${python.version}-scikit-learn \
                    port:py${python.version}-scipy \
                    port:py${python.version}-tornado \
                    port:py${python.version}-typing_extensions \
                    port:py${python.version}-watchdog

    test.run        yes
}
