1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 setuptools,
6 brotli,
7 colorama,
8 filetype,
9 requests,
10 requests-toolbelt,
11 ua-parser,
12 websocket-client,
13 pycryptodome,
14 pypng,
15 pyqrcode,
16}:
17
18buildPythonPackage rec {
19 pname = "discum";
20 version = "1.4.1";
21 pyproject = true;
22
23 src = fetchPypi {
24 inherit pname version;
25 hash = "sha256-/8TaAmfSPv/7kuymockSvC2uxXgHfuP+FXN8vuA9WHY=";
26 };
27
28 build-system = [ setuptools ];
29
30 dependencies = [
31 brotli
32 colorama
33 filetype
34 requests
35 requests-toolbelt
36 ua-parser
37 websocket-client
38 ];
39
40 optional-dependencies = {
41 ra = [
42 pycryptodome
43 pypng
44 pyqrcode
45 ];
46 };
47
48 pythonImportsCheck = [ "discum" ];
49
50 pythonRelaxDeps = [ "websocket-client" ];
51
52 meta = {
53 description = "Discord API Wrapper for Userbots/Selfbots written in Python";
54 homepage = "https://pypi.org/project/discum/";
55 changelog = "https://github.com/Merubokkusu/Discord-S.C.U.M/blob/v${version}/changelog.md";
56 license = lib.licenses.mit;
57 maintainers = with lib.maintainers; [ jokatzke ];
58 };
59}