1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5}: 6 7buildPythonPackage rec { 8 pname = "simpleeval"; 9 version = "0.9.11"; 10 format = "pyproject"; 11 12 src = fetchFromGitHub { 13 owner = "danthedeckie"; 14 repo = pname; 15 rev = version; 16 sha256 = "111w76mahbf3lm2p72dkqp5fhwg7nvnwm4l078dgsgkixssjazi7"; 17 }; 18 19 checkInputs = [ 20 pytestCheckHook 21 ]; 22 23 pytestFlagsArray = [ 24 "test_simpleeval.py" 25 ]; 26 27 pythonImportsCheck = [ 28 "simpleeval" 29 ]; 30 31 meta = with lib; { 32 description = "Simple, safe single expression evaluator library"; 33 homepage = "https://github.com/danthedeckie/simpleeval"; 34 license = licenses.mit; 35 maintainers = with maintainers; [ johbo ]; 36 }; 37}