1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 flit-core,
6 hikari,
7 croniter,
8 typing-extensions,
9}:
10
11buildPythonPackage rec {
12 pname = "hikari-lightbulb";
13 version = "3.1.1";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "tandemdude";
18 repo = "hikari-lightbulb";
19 tag = version;
20 hash = "sha256-hsd7K7VFXndQ3tE8UkIcFXADgG/Kjd2oNWdFvwAwUtw=";
21 };
22
23 build-system = [ flit-core ];
24
25 dependencies = [
26 hikari
27 typing-extensions
28 ];
29
30 optional-dependencies = {
31 crontrigger = [ croniter ];
32 };
33
34 pythonImportsCheck = [ "lightbulb" ];
35
36 meta = with lib; {
37 broken = true; # missing linkd and confspec dependencies
38 description = "Command handler for Hikari, the Python Discord API wrapper library";
39 longDescription = ''
40 Lightbulb is designed to be an easy to use command handler library that integrates with the Discord API wrapper library for Python, Hikari.
41
42 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.
43 '';
44 homepage = "https://hikari-lightbulb.readthedocs.io/en/latest/";
45 # https://github.com/tandemdude/hikari-lightbulb/blob/d87df463488d1c1d947144ac0bafa4304e12ddfd/setup.py#L68
46 license = licenses.lgpl3Only;
47 maintainers = with maintainers; [ tomodachi94 ];
48 };
49}