1{ 2 lib, 3 buildPythonPackage, 4 pythonOlder, 5 fetchFromGitHub, 6 setuptools-scm, 7 toml, 8 pytestCheckHook, 9}: 10 11buildPythonPackage rec { 12 pname = "pure-eval"; 13 version = "0.2.3"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "alexmojaki"; 20 repo = "pure_eval"; 21 rev = "v${version}"; 22 hash = "sha256-gdP8/MkzTyjkZaWUG5PoaOtBqzbCXYNYBX2XBLWLh18="; 23 }; 24 25 build-system = [ setuptools-scm ]; 26 27 dependencies = [ toml ]; 28 29 nativeCheckInputs = [ pytestCheckHook ]; 30 31 pythonImportsCheck = [ "pure_eval" ]; 32 33 meta = with lib; { 34 description = "Safely evaluate AST nodes without side effects"; 35 homepage = "https://github.com/alexmojaki/pure_eval"; 36 license = licenses.mit; 37 maintainers = with maintainers; [ ]; 38 }; 39}