# -*- 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 {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 \
homepage https://github.com/newville/asteval
master_sites pypi:a/asteval/
distname asteval-${version}
checksums rmd160 8403f3ffcd48c8f54779ca17af7c51f5c87e2a88 \
sha256 7c81fee6707a7a28e8beae891b858535a7e61f9ce275a0a4cf5f428fbc934cb8 \
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.cmd py.test-${python.branch}
test.env PYTHONPATH=${worksrcpath}/build/lib
set docdir ${prefix}/share/doc/${subport}
xinstall -d ${destroot}${docdir}
xinstall -m 0644 -W ${worksrcpath} README.rst INSTALL \
LICENSE ${destroot}${docdir}