aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/restrictedpython/default.nix
diff options
context:
space:
mode:
authorJuanjo Presa <juanjop@gmail.com>2019-10-02 16:03:04 +0100
committerJuanjo Presa <juanjop@gmail.com>2019-11-16 00:37:50 +0000
commit88d04db27935188d0264fac886baf1f10044450a (patch)
treef500656acb485c11b4563ac34a5a991f195bb45a /pkgs/development/python-modules/restrictedpython/default.nix
parentc1966522d7d5fa54db068140d212cba18731dd98 (diff)
python3Packages.restrictedpython: init at 5.0
Diffstat (limited to '')
-rw-r--r--pkgs/development/python-modules/restrictedpython/default.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/restrictedpython/default.nix b/pkgs/development/python-modules/restrictedpython/default.nix
new file mode 100644
index 000000000000..5163c7389b27
--- /dev/null
+++ b/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.0";
+
+ src = fetchPypi {
+ inherit pname version;
+ sha256 = "1g0sffn6ifkl1w8gq15rpaqm8c7l68bsnm77wcd3flyzzydmd050";
+ };
+
+ #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 ];
+ };
+}