depot/third_party/nixpkgs/pkgs/development/python-modules/restrictedpython/default.nix
Default email 78efc47b99 Project import generated by Copybara.
GitOrigin-RevId: 83cbad92d73216bb0d9187c56cce0b91f9121d5a
2020-12-07 07:45:13 +00:00

34 lines
702 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
# Test dependencies
, pytest, pytest-mock
}:
buildPythonPackage rec {
pname = "RestrictedPython";
version = "5.1";
src = fetchPypi {
inherit pname version;
sha256 = "9ae16e500782b41bd1abefd8554ccb26330817bba9ce090d385aa226f1ca83e8";
};
#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 ];
};
}