# -*- 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-asteval version 0.9.14 categories-append math license BSD maintainers {reneeotten @reneeotten} openmaintainer description Minimalistic evaluator of python expression using ast module long_description ASTEVAL is a safe(ish) evaluator of Python expressions and \ statements, using Python's ast module. The idea is to provide \ a simple, safe, and robust miniature mathematical language that \ can handle user-input. The emphasis here is on mathematical \ expressions, and so many functions from numpy are imported and \ used if available. platforms darwin supported_archs noarch homepage https://github.com/newville/asteval master_sites pypi:a/asteval/ distname asteval-${version} checksums rmd160 8403f3ffcd48c8f54779ca17af7c51f5c87e2a88 \ sha256 7c81fee6707a7a28e8beae891b858535a7e61f9ce275a0a4cf5f428fbc934cb8 \ size 52726 python.versions 27 34 35 36 37 if {${subport} ne ${name}} { depends_build-append port:py${python.version}-setuptools depends_lib-append port:py${python.version}-numpy \ port:py${python.version}-six depends_test-append port:py${python.version}-pytest test.run yes test.cmd py.test-${python.branch} test.target test.env PYTHONPATH=${worksrcpath}/build/lib post-destroot { set docdir ${prefix}/share/doc/${subport} xinstall -d ${destroot}${docdir} xinstall -m 0644 -W ${worksrcpath} README.rst INSTALL \ LICENSE ${destroot}${docdir} } livecheck.type none }