1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-01 21:39:21 +03:00
nixpkgs/pkgs/development/python-modules/restrictedpython/default.nix
2023-01-05 01:10:27 +01:00

34 lines
701 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pytest-mock
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "restrictedpython";
version = "6.0";
format = "setuptools";
src = fetchPypi {
pname = "RestrictedPython";
inherit version;
sha256 = "sha256-QFzwvZ7sLxmxMmtfSCKO/lbWWQtOkYJrjMOyzUAKlq0=";
};
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 ];
};
}