# -*- 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
maintainers {mcalhoun @MarcusCalhoun-Lopez} openmaintainer
description A library for concise, idiomatic Python expression of finite-state automata
long_description Automat is a library for concise, idiomatic Python expression of finite-state automata (particularly deterministic finite-state transducers).
homepage https://github.com/glyph/automat
master_sites pypi:[string index ${python.rootname} 0]/${python.rootname}
distname ${python.rootname}-${version}
checksums rmd160 47ebcfc9c49f75aaa6dadc2eeb97d942e1dac0bc \
sha256 269a09dfb063a3b078983f4976d83f0a0d3e6e7aaf8e27d8df1095e09dc4a484 \
python.versions 27 35 36 37 38
if {${name} ne ${subport}} {
port:py${python.version}-setuptools_scm \
port:py${python.version}-m2r
# uses from "pkg_resources import load_entry_point"
port:py${python.version}-setuptools
port:py${python.version}-attrs \
port:py${python.version}-six
# see https://pypi.python.org/pypi/Automat/
# see https://trac.macports.org/ticket/54627
# see https://trac.macports.org/ticket/56955
#port:py${python.version}-twisted \
#port:py${python.version}-graphviz
[catch {set installed [lindex [registry_active py${python.version}-twisted] 0]}] ||
[catch {set installed [lindex [registry_active py${python.version}-graphviz] 0]}]
${subport} requires py${python.version}-twisted and py${python.version}-graphviz to enable the visualize feature.
However, py${python.version}-twisted depends on ${subport} to run correctly.
Please install py${python.version}-twisted and py${python.version}-graphviz manually for full functionality.
port:py${python.version}-pytest