Files
2026-06-19 12:06:13 -04:00

45 lines
1.6 KiB
Tcl

# -*- 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 1.0.9
revision 0
categories-append math
platforms {darwin any}
supported_archs noarch
license MIT
maintainers {reneeotten @reneeotten} openmaintainer
description Safe, 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.
homepage https://github.com/lmfit/asteval
checksums rmd160 c86af27acfb2e8d2843342d0bfeb5e495aedbdec \
sha256 4f7323d63d9fbf89d7e1d5f8bb59b6c093970c15bb5926e6e67d0195858aa230 \
size 55237
python.versions 310 311 312 313 314
if {${subport} ne ${name}} {
depends_build-append \
port:py${python.version}-setuptools_scm
test.run yes
post-destroot {
set docdir ${prefix}/share/doc/${subport}
xinstall -d ${destroot}${docdir}
xinstall -m 0644 -W ${worksrcpath} README.rst \
LICENSE ${destroot}${docdir}
}
}