git: 311042b4b64d - main - devel/py-asteval: New port: Safe, minimalistic evaluator of python expression using ast module
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 09 Aug 2022 22:58:04 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=311042b4b64db806d236af93ea7a0fbf9520a355
commit 311042b4b64db806d236af93ea7a0fbf9520a355
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-08-09 22:29:55 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-08-09 22:57:59 +0000
devel/py-asteval: New port: Safe, minimalistic evaluator of python expression using ast module
---
devel/Makefile | 1 +
devel/py-asteval/Makefile | 22 ++++++++++++++++++++++
devel/py-asteval/distinfo | 3 +++
devel/py-asteval/pkg-descr | 8 ++++++++
4 files changed, 34 insertions(+)
diff --git a/devel/Makefile b/devel/Makefile
index b284ee8bad70..4e0082e43dd8 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4128,6 +4128,7 @@
SUBDIR += py-asciimatics
SUBDIR += py-asn1crypto
SUBDIR += py-aspy.yaml
+ SUBDIR += py-asteval
SUBDIR += py-astor
SUBDIR += py-astroid
SUBDIR += py-astroid253
diff --git a/devel/py-asteval/Makefile b/devel/py-asteval/Makefile
new file mode 100644
index 000000000000..bd79890b725b
--- /dev/null
+++ b/devel/py-asteval/Makefile
@@ -0,0 +1,22 @@
+PORTNAME= asteval
+PORTVERSION= 0.9.27
+CATEGORIES= devel python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Safe, minimalistic evaluator of python expression using ast module
+
+LICENSE= MIT
+LICENSE_FILES= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools_scm>0:devel/py-setuptools_scm@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pip>0:devel/py-pip@${PY_FLAVOR}
+RUN_DEPENDS= ${PYNUMPY}
+
+USES= python:3.8+
+USE_PYTHON= distutils autoplist pytest
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-asteval/distinfo b/devel/py-asteval/distinfo
new file mode 100644
index 000000000000..9fd00030fb31
--- /dev/null
+++ b/devel/py-asteval/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1660083242
+SHA256 (asteval-0.9.27.tar.gz) = de838c33aed4c9bb25737eadbb7d1edaaf875e2bab505cc079f1a4b35de03e47
+SIZE (asteval-0.9.27.tar.gz) = 41789
diff --git a/devel/py-asteval/pkg-descr b/devel/py-asteval/pkg-descr
new file mode 100644
index 000000000000..62b01163b41c
--- /dev/null
+++ b/devel/py-asteval/pkg-descr
@@ -0,0 +1,8 @@
+asteval provides a numpy-aware, safe(ish) 'eval' function Emphasis is on
+mathematical expressions, and so numpy ufuncs are used if available. Symbols
+are held in the Interpreter symbol table 'symtable': a simple dictionary
+supporting a simple, flat namespace. Expressions can be compiled into ast node
+for later evaluation, using the values in the symbol table current at evaluation
+time.
+
+WWW: https://github.com/newville/asteval