depot/third_party/nixpkgs/pkgs/development/python-modules/restrictedpython/default.nix
Default email ce641f4048 Project import generated by Copybara.
GitOrigin-RevId: bc5d68306b40b8522ffb69ba6cff91898c2fbbff
2021-12-06 17:07:01 +01:00

34 lines
701 B
Nix

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