python3Packages.restrictedpython: init at 5.0

This commit is contained in:
Juanjo Presa 2019-10-02 16:03:04 +01:00
parent c1966522d7
commit 88d04db279
2 changed files with 36 additions and 0 deletions

View file

@ -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 ];
};
}

View file

@ -4864,6 +4864,8 @@ in {
repocheck = callPackage ../development/python-modules/repocheck { };
restrictedpython = callPackage ../development/python-modules/restrictedpython { };
restview = callPackage ../development/python-modules/restview { };
readme = callPackage ../development/python-modules/readme { };