1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, setuptools 5, pytestCheckHook 6}: 7 8buildPythonPackage rec { 9 pname = "simpleeval"; 10 version = "0.9.13"; 11 format = "pyproject"; 12 13 src = fetchFromGitHub { 14 owner = "danthedeckie"; 15 repo = pname; 16 rev = "refs/tags/${version}"; 17 hash = "sha256-I1GILYPE6OyotgRe0Ek/iHHv6q9/b/MlcTxMAtfZD80="; 18 }; 19 20 nativeBuildInputs = [ 21 setuptools 22 ]; 23 24 nativeCheckInputs = [ 25 pytestCheckHook 26 ]; 27 28 pytestFlagsArray = [ 29 "test_simpleeval.py" 30 ]; 31 32 pythonImportsCheck = [ 33 "simpleeval" 34 ]; 35 36 meta = with lib; { 37 description = "Simple, safe single expression evaluator library"; 38 homepage = "https://github.com/danthedeckie/simpleeval"; 39 changelog = "https://github.com/danthedeckie/simpleeval/releases/tag/${version}"; 40 license = licenses.mit; 41 maintainers = with maintainers; [ johbo ]; 42 }; 43}