aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/python-modules/restrictedpython
diff options
context:
space:
mode:
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/development/python-modules/restrictedpython')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/development/python-modules/restrictedpython/default.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/development/python-modules/restrictedpython/default.nix b/infra/libkookie/nixpkgs/pkgs/development/python-modules/restrictedpython/default.nix
new file mode 100644
index 000000000000..d7005e154504
--- /dev/null
+++ b/infra/libkookie/nixpkgs/pkgs/development/python-modules/restrictedpython/default.nix
@@ -0,0 +1,34 @@
+{ lib
+, buildPythonPackage
+, fetchPypi
+
+# Test dependencies
+, pytest, pytest-mock
+}:
+
+buildPythonPackage rec {
+ pname = "RestrictedPython";
+ version = "5.1";
+
+ src = fetchPypi {
+ inherit pname version;
+ sha256 = "9ae16e500782b41bd1abefd8554ccb26330817bba9ce090d385aa226f1ca83e8";
+ };
+
+ #propagatedBuildInputs = [ xmltodict requests ifaddr ];
+
+ checkInputs = [
+ pytest pytest-mock
+ ];
+
+ checkPhase = ''
+ pytest
+ '';
+
+ meta = {
+ homepage = "https://github.com/zopefoundation/RestrictedPython";
+ description = "A restricted execution environment for Python to run untrusted code";
+ license = lib.licenses.zpl21;
+ maintainers = with lib.maintainers; [ juaningan ];
+ };
+}