Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
43 lines (34 sloc) 1.73 KB
# -*- 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.13
categories-append math
license BSD
maintainers {@reneeotten gmail.com:ottenr.work} 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
homepage https://github.com/newville/asteval
master_sites pypi:a/asteval/
distname asteval-${version}
checksums rmd160 36f24c2c4509ba66e3a532686393b838e4ae12b4 \
sha256 8faf9f92b2b0d2ed376dc149d6bab2e01f614f6994722be9c16f982cbdd07c99 \
size 51640
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
livecheck.type none
}
You can’t perform that action at this time.