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