10 buildPythonPackage rec {
11 pname = "restrictedpython";
13 format = "setuptools";
15 disabled = pythonOlder "3.7";
18 pname = "RestrictedPython";
20 hash = "sha256-23Prfjs5ZQ8NIdEMyN2pwOKYbmIclLDF3jL7De46CK8=";
28 disabledTests = lib.optionals (pythonAtLeast "3.11") [
29 "test_compile__compile_restricted_exec__5"
32 pythonImportsCheck = [
37 description = "Restricted execution environment for Python to run untrusted code";
38 homepage = "https://github.com/zopefoundation/RestrictedPython";
39 changelog = "https://github.com/zopefoundation/RestrictedPython/blob/${version}/CHANGES.rst";
40 license = licenses.zpl21;
41 maintainers = with maintainers; [ juaningan ];