Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 34 lines 702 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.1"; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "9ae16e500782b41bd1abefd8554ccb26330817bba9ce090d385aa226f1ca83e8"; 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}