summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Winger2019-08-10 19:57:33 -0400
committerBenjamin Winger2019-08-10 20:01:10 -0400
commitf1046fca3cedd274ae97638b09b1ed4a96d388cf (patch)
treecc5811b9bc199c9bf395671a269a66ef296f3971
downloadaur-f1046fca3cedd274ae97638b09b1ed4a96d388cf.tar.gz
Initial commit
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD27
2 files changed, 46 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..406aed55499
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = python-restrictedpython
+ pkgdesc = A restricted execution environment for Python to run untrusted code
+ pkgver = 4.0
+ pkgrel = 1
+ url = https://github.com/zopefoundation/RestrictedPython
+ arch = any
+ license = ZPL
+ checkdepends = python-pytest
+ checkdepends = python-pytest-mock
+ makedepends = python
+ makedepends = python-setuptools
+ depends = python
+ provides = python-restrictedpython
+ conflicts = python-restrictedpython
+ source = https://github.com/zopefoundation/RestrictedPython/archive/4.0.tar.gz
+ sha512sums = 551a6976b42e94d9f9e1eb643761108e891a9d8cb920432c4450a37676d2f1375d6ddb7c28787830dabba9f07d846da151d0b02628785d55b253949abb92aadc
+
+pkgname = python-restrictedpython
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..68922b66b6b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Benjamin Winger <bmw@disroot.org>
+
+_pkgname=RestrictedPython
+pkgname=python-restrictedpython
+pkgver=4.0
+pkgrel=1
+pkgdesc="A restricted execution environment for Python to run untrusted code"
+provides=('python-restrictedpython')
+conflicts=('python-restrictedpython')
+arch=(any)
+url="https://github.com/zopefoundation/RestrictedPython"
+license=(ZPL)
+depends=("python")
+makedepends=("python" "python-setuptools")
+checkdepends=("python-pytest" "python-pytest-mock")
+source=("https://github.com/zopefoundation/$_pkgname/archive/$pkgver.tar.gz")
+sha512sums=('551a6976b42e94d9f9e1eb643761108e891a9d8cb920432c4450a37676d2f1375d6ddb7c28787830dabba9f07d846da151d0b02628785d55b253949abb92aadc')
+
+check() {
+ cd "$srcdir/$_pkgname-$pkgver"
+ py.test
+}
+
+package() {
+ cd "$srcdir/$_pkgname-$pkgver"
+ python setup.py install --root $pkgdir
+}