Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 34 lines 688 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4 5# Test dependencies 6, pytest, pytest-mock 7}: 8 9buildPythonPackage rec { 10 pname = "RestrictedPython"; 11 version = "5.0"; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "1g0sffn6ifkl1w8gq15rpaqm8c7l68bsnm77wcd3flyzzydmd050"; 16 }; 17 18 #propagatedBuildInputs = [ xmltodict requests ifaddr ]; 19 20 checkInputs = [ 21 pytest pytest-mock 22 ]; 23 24 checkPhase = '' 25 pytest 26 ''; 27 28 meta = { 29 homepage = https://github.com/zopefoundation/RestrictedPython; 30 description = "A restricted execution environment for Python to run untrusted code"; 31 license = lib.licenses.zpl21; 32 maintainers = with lib.maintainers; [ juaningan ]; 33 }; 34}