python312Packages.fnllm: 0.0.11 -> 0.0.12 (#364582)
[NixPkgs.git] / pkgs / development / python-modules / nextcord / default.nix
blobd9c1fcc827422381e0f6ec373d24cf82db31cbba
2   lib,
3   stdenv,
4   buildPythonPackage,
5   pythonOlder,
6   fetchFromGitHub,
7   substituteAll,
8   ffmpeg,
9   libopus,
10   aiohttp,
11   aiodns,
12   brotli,
13   faust-cchardet,
14   orjson,
15   pynacl,
16   setuptools,
19 buildPythonPackage rec {
20   pname = "nextcord";
21   version = "2.6.1";
22   pyproject = true;
24   disabled = pythonOlder "3.8";
26   src = fetchFromGitHub {
27     owner = "nextcord";
28     repo = "nextcord";
29     rev = "refs/tags/v${version}";
30     hash = "sha256-bv4I+Ol/N4kbp/Ch7utaUpo0GmF+Mpx4zWmHL7uIveM=";
31   };
33   patches = [
34     (substituteAll {
35       src = ./paths.patch;
36       ffmpeg = "${ffmpeg}/bin/ffmpeg";
37       libopus = "${libopus}/lib/libopus${stdenv.hostPlatform.extensions.sharedLibrary}";
38     })
39   ];
41   build-system = [
42     setuptools
43   ];
45   dependencies = [
46     aiodns
47     aiohttp
48     brotli
49     faust-cchardet
50     orjson
51     pynacl
52     setuptools # for pkg_resources, remove with next release
53   ];
55   # upstream has no tests
56   doCheck = false;
58   pythonImportsCheck = [
59     "nextcord"
60     "nextcord.ext.commands"
61     "nextcord.ext.tasks"
62   ];
64   meta = with lib; {
65     changelog = "https://github.com/nextcord/nextcord/blob/${src.rev}/docs/whats_new.rst";
66     description = "Python wrapper for the Discord API forked from discord.py";
67     homepage = "https://github.com/nextcord/nextcord";
68     license = licenses.mit;
69     maintainers = with maintainers; [ dotlambda ];
70   };