1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, setuptools 5, pytestCheckHook 6}: 7 8buildPythonPackage rec { 9 pname = "simpleeval"; 10 version = "0.9.12"; 11 format = "pyproject"; 12 13 src = fetchFromGitHub { 14 owner = "danthedeckie"; 15 repo = pname; 16 rev = version; 17 sha256 = "0khgl729q5133fgc00d550f4r77707rkkn7r56az4v8bvx0q8xp4"; 18 }; 19 20 nativeBuildInputs = [ 21 setuptools 22 ]; 23 24 checkInputs = [ 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 license = licenses.mit; 40 maintainers = with maintainers; [ johbo ]; 41 }; 42}