git: 58d492002122 - main - math/py-evalidate: New port: Safe evaluation of untrusted user-supplied python expressions

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Thu, 20 Oct 2022 16:05:39 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=58d4920021228eef68ba7535a63ab7fbe4a9d969

commit 58d4920021228eef68ba7535a63ab7fbe4a9d969
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-10-20 14:38:41 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-10-20 16:05:36 +0000

    math/py-evalidate: New port: Safe evaluation of untrusted user-supplied python expressions
---
 math/Makefile               |  1 +
 math/py-evalidate/Makefile  | 18 ++++++++++++++++++
 math/py-evalidate/distinfo  |  3 +++
 math/py-evalidate/pkg-descr |  2 ++
 4 files changed, 24 insertions(+)

diff --git a/math/Makefile b/math/Makefile
index 63f3ead8345c..0eb3b835859e 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -867,6 +867,7 @@
     SUBDIR += py-docplex
     SUBDIR += py-ducc0
     SUBDIR += py-ecos
+    SUBDIR += py-evalidate
     SUBDIR += py-faiss
     SUBDIR += py-fastcluster
     SUBDIR += py-fastdtw
diff --git a/math/py-evalidate/Makefile b/math/py-evalidate/Makefile
new file mode 100644
index 000000000000..ee8cdcb493ba
--- /dev/null
+++ b/math/py-evalidate/Makefile
@@ -0,0 +1,18 @@
+PORTNAME=	evalidate
+DISTVERSION=	1.0.2
+CATEGORIES=	math python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Safe evaluation of untrusted user-supplied python expressions
+WWW=		https://github.com/yaroslaff/evalidate
+
+LICENSE=	MIT
+
+USES=		python
+USE_PYTHON=	distutils autoplist
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/math/py-evalidate/distinfo b/math/py-evalidate/distinfo
new file mode 100644
index 000000000000..ec59f59a99ff
--- /dev/null
+++ b/math/py-evalidate/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1666281226
+SHA256 (evalidate-1.0.2.tar.gz) = 7830c91fc828a27bb4e9f01db2da6fabbddafda3d067af642758b2ce33521484
+SIZE (evalidate-1.0.2.tar.gz) = 9838
diff --git a/math/py-evalidate/pkg-descr b/math/py-evalidate/pkg-descr
new file mode 100644
index 000000000000..6521bc58dfa8
--- /dev/null
+++ b/math/py-evalidate/pkg-descr
@@ -0,0 +1,2 @@
+Evalidate is simple python module for safe eval()'uating user-supplied
+(possibly malicious) logical expressions in python syntax.