mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-06 04:03:04 +00:00
![Robert Schütz](/assets/img/avatar_default.png)
Diff: https://github.com/nextcord/nextcord/compare/refs/tags/v2.3.3...v2.4.0 Changelog: https://github.com/nextcord/nextcord/blob/refs/tags/v2.4.0/docs/whats_new.rst
66 lines
1.2 KiB
Nix
66 lines
1.2 KiB
Nix
{ lib
|
|
, stdenv
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchFromGitHub
|
|
, substituteAll
|
|
, ffmpeg
|
|
, libopus
|
|
, aiohttp
|
|
, aiodns
|
|
, brotli
|
|
, cchardet
|
|
, orjson
|
|
, pynacl
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "nextcord";
|
|
version = "2.4.0";
|
|
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nextcord";
|
|
repo = "nextcord";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-TePUsyQ4DCuvfRQD4KAUs94o3MJRmZmu6jMPv4lJtHE=";
|
|
};
|
|
|
|
patches = [
|
|
(substituteAll {
|
|
src = ./paths.patch;
|
|
ffmpeg = "${ffmpeg}/bin/ffmpeg";
|
|
libopus = "${libopus}/lib/libopus${stdenv.hostPlatform.extensions.sharedLibrary}";
|
|
})
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
aiodns
|
|
aiohttp
|
|
brotli
|
|
cchardet
|
|
orjson
|
|
pynacl
|
|
];
|
|
|
|
# upstream has no tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"nextcord"
|
|
"nextcord.ext.commands"
|
|
"nextcord.ext.tasks"
|
|
];
|
|
|
|
meta = with lib; {
|
|
changelog = "https://github.com/nextcord/nextcord/blob/${src.rev}/docs/whats_new.rst";
|
|
description = "Python wrapper for the Discord API forked from discord.py";
|
|
homepage = "https://github.com/nextcord/nextcord";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
};
|
|
}
|