My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/restrictedpython/default.nix

34 lines
701 B

{ lib
, buildPythonPackage
, fetchPypi
, pytest-mock
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "restrictedpython";
version = "5.2";
format = "setuptools";
src = fetchPypi {
pname = "RestrictedPython";
inherit version;
sha256 = "sha256-Y02h9sXBIqJi9DOwg+49F6mgOfjxs3eFl++0dGHNNhs=";
};
checkInputs = [
pytestCheckHook
pytest-mock
];
pythonImportsCheck = [
"RestrictedPython"
];
meta = with lib; {
description = "Restricted execution environment for Python to run untrusted code";
homepage = "https://github.com/zopefoundation/RestrictedPython";
license = licenses.zpl21;
maintainers = with maintainers; [ juaningan ];
};
}