python3Packages.restrictedpython: 5.1 -> 5.2

This commit is contained in:
Fabian Affolter 2021-11-20 15:34:08 +01:00
parent 293e6f0ce5
commit f3ae4d9cc3

View file

@ -1,34 +1,34 @@
{ lib
, buildPythonPackage
, fetchPypi
# Test dependencies
, pytest, pytest-mock
, pytest-mock
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "RestrictedPython";
version = "5.1";
pname = "restrictedpython";
version = "5.2";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "9ae16e500782b41bd1abefd8554ccb26330817bba9ce090d385aa226f1ca83e8";
pname = "RestrictedPython";
inherit version;
sha256 = "sha256-Y02h9sXBIqJi9DOwg+49F6mgOfjxs3eFl++0dGHNNhs=";
};
#propagatedBuildInputs = [ xmltodict requests ifaddr ];
checkInputs = [
pytest pytest-mock
pytestCheckHook
pytest-mock
];
checkPhase = ''
pytest
'';
pythonImportsCheck = [
"RestrictedPython"
];
meta = {
meta = with lib; {
description = "Restricted execution environment for Python to run untrusted code";
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 ];
license = licenses.zpl21;
maintainers = with maintainers; [ juaningan ];
};
}