1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 wheel,
7 hikari,
8 croniter,
9}:
10
11buildPythonPackage rec {
12 pname = "hikari-lightbulb";
13 version = "2.3.5.post1";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "tandemdude";
18 repo = "hikari-lightbulb";
19 tag = version;
20 hash = "sha256-sxBrOgMgUcPjqtNuuq5+NfyxR5V812dfHnGoO9DhdXU=";
21 };
22
23 nativeBuildInputs = [
24 setuptools
25 wheel
26 ];
27
28 propagatedBuildInputs = [ hikari ];
29
30 optional-dependencies = {
31 crontrigger = [ croniter ];
32 };
33
34 pythonImportsCheck = [ "lightbulb" ];
35
36 meta = with lib; {
37 description = "Command handler for Hikari, the Python Discord API wrapper library";
38 longDescription = ''
39 Lightbulb is designed to be an easy to use command handler library that integrates with the Discord API wrapper library for Python, Hikari.
40
41 This library aims to make it simple for you to make your own Discord bots and provide all the utilities and functions you need to help make this job easier.
42 '';
43 homepage = "https://hikari-lightbulb.readthedocs.io/en/latest/";
44 # https://github.com/tandemdude/hikari-lightbulb/blob/d87df463488d1c1d947144ac0bafa4304e12ddfd/setup.py#L68
45 license = licenses.lgpl3Only;
46 maintainers = with maintainers; [ tomodachi94 ];
47 };
48}