You've already forked macports-ports
mirror of
https://github.com/encounter/macports-ports.git
synced 2026-03-30 11:29:27 -07:00
62 lines
2.1 KiB
Tcl
62 lines
2.1 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 0.9.23
|
|
revision 0
|
|
|
|
categories-append math
|
|
platforms darwin
|
|
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/newville/asteval
|
|
|
|
checksums rmd160 880f0f8100d6ae00b4b5559f7ebbbb3feda88d4e \
|
|
sha256 f5096a924b1d2f147e70327245d95fc8f534dbe94277b6828ce2a8c049d3a438 \
|
|
size 55239
|
|
|
|
python.versions 27 36 37 38 39
|
|
|
|
if {${subport} ne ${name}} {
|
|
if {${python.version} eq 27} {
|
|
version 0.9.17
|
|
revision 0
|
|
distname asteval-${version}
|
|
checksums rmd160 67e3710e4b0956b1da6e34c139ad2c470bfdd4b6 \
|
|
sha256 3e291b2cb71284bc55816fe7ff65ee15e47fa66df98490cdd95f5531fc37b81e \
|
|
size 53878
|
|
}
|
|
|
|
depends_build-append \
|
|
port:py${python.version}-setuptools
|
|
|
|
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
|
|
}
|