1{ 2 buildPythonPackage, 3 fetchFromGitHub, 4 setuptools, 5 discordpy, 6 lib, 7}: 8let 9 pname = "reactionmenu"; 10 version = "3.1.7"; 11in 12buildPythonPackage { 13 inherit pname version; 14 15 src = fetchFromGitHub { 16 owner = "Defxult"; 17 repo = "reactionmenu"; 18 tag = "v${version}"; 19 hash = "sha256-ftRrpNOJIa2DSBr9YOH3Bhn8iXE1Pgtv0f57/rsCqJU="; 20 }; 21 pyproject = true; 22 23 build-system = [ 24 setuptools 25 ]; 26 27 dependencies = [ 28 discordpy 29 ]; 30 31 pythonImportsCheck = [ "reactionmenu" ]; 32 33 meta = { 34 description = "Library to create a discord.py 2.0+ paginator"; 35 longDescription = '' 36 A Python library to create a discord.py 2.0+ paginator (reaction menu/buttons menu). 37 Supports pagination with buttons, reactions, and category selection using selects. 38 ''; 39 homepage = "https://github.com/Defxult/reactionmenu"; 40 changelog = "https://github.com/Defxult/reactionmenu/blob/v${version}/CHANGELOG.md"; 41 license = lib.licenses.mit; 42 maintainers = with lib.maintainers; [ amadaluzia ]; 43 }; 44}