1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5, pythonOlder 6, setuptools-scm 7}: 8 9buildPythonPackage rec { 10 pname = "asteval"; 11 version = "0.9.25"; 12 disabled = pythonOlder "3.6"; 13 14 src = fetchFromGitHub { 15 owner = "newville"; 16 repo = pname; 17 rev = version; 18 sha256 = "sha256-Jy+4NifItCGI1Jj25VakwoJcrpZw0Ng4cArf2M31WGs="; 19 }; 20 21 SETUPTOOLS_SCM_PRETEND_VERSION = version; 22 23 nativeBuildInputs = [ 24 setuptools-scm 25 ]; 26 27 checkInputs = [ 28 pytestCheckHook 29 ]; 30 31 pythonImportsCheck = [ "asteval" ]; 32 33 meta = with lib; { 34 description = "AST evaluator of Python expression using ast module"; 35 homepage = "https://github.com/newville/asteval"; 36 license = with licenses; [ mit ]; 37 maintainers = with maintainers; [ fab ]; 38 }; 39}