Import py-simpleeval-0.9.5 from semarie with minor tweaks from me
A quick single file library for easily adding evaluatable expressions into python projects. Say you want to allow a user to set an alarm volume, which could depend on the time of day, alarm level, how many previous alarms had gone off, and if there is music playing at the time. Or if you want to allow simple formulae in a web application, but don't want to give full eval() access, or don't want to run in javascript on the client side.
This commit is contained in:
parent
34526660e0
commit
5b2a3b6abc
21
devel/py-simpleeval/Makefile
Normal file
21
devel/py-simpleeval/Makefile
Normal file
@ -0,0 +1,21 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2017/05/22 02:23:18 danj Exp $
|
||||
|
||||
COMMENT = simple, safe single expression evaluator library
|
||||
|
||||
MODPY_EGG_VERSION = 0.9.5
|
||||
DISTNAME = simpleeval-${MODPY_EGG_VERSION}
|
||||
PKGNAME = py-${DISTNAME}
|
||||
|
||||
CATEGORIES = devel
|
||||
|
||||
# MIT
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
|
||||
MODULES = lang/python
|
||||
MODPY_PI = Yes
|
||||
MODPY_SETUPTOOLS = Yes
|
||||
|
||||
FLAVORS = python3
|
||||
FLAVOR ?=
|
||||
|
||||
.include <bsd.port.mk>
|
2
devel/py-simpleeval/distinfo
Normal file
2
devel/py-simpleeval/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (simpleeval-0.9.5.tar.gz) = IwbJcyi9O6l/ZiMirlJ15um/ulWufhZPkISmh9cIqmk=
|
||||
SIZE (simpleeval-0.9.5.tar.gz) = 16893
|
9
devel/py-simpleeval/pkg/DESCR
Normal file
9
devel/py-simpleeval/pkg/DESCR
Normal file
@ -0,0 +1,9 @@
|
||||
A quick single file library for easily adding evaluatable expressions into
|
||||
python projects.
|
||||
|
||||
Say you want to allow a user to set an alarm volume, which could depend on the
|
||||
time of day, alarm level, how many previous alarms had gone off, and if there
|
||||
is music playing at the time.
|
||||
|
||||
Or if you want to allow simple formulae in a web application, but don't want to
|
||||
give full eval() access, or don't want to run in javascript on the client side.
|
8
devel/py-simpleeval/pkg/PLIST
Normal file
8
devel/py-simpleeval/pkg/PLIST
Normal file
@ -0,0 +1,8 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2017/05/22 02:23:18 danj Exp $
|
||||
lib/python${MODPY_VERSION}/site-packages/${MODPY_PYCACHE}simpleeval.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/simpleeval-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/
|
||||
lib/python${MODPY_VERSION}/site-packages/simpleeval-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/PKG-INFO
|
||||
lib/python${MODPY_VERSION}/site-packages/simpleeval-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/SOURCES.txt
|
||||
lib/python${MODPY_VERSION}/site-packages/simpleeval-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/dependency_links.txt
|
||||
lib/python${MODPY_VERSION}/site-packages/simpleeval-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/top_level.txt
|
||||
lib/python${MODPY_VERSION}/site-packages/simpleeval.py
|
Loading…
Reference in New Issue
Block a user