mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
9b83f4c124
It uses pkg_resources.
72 lines
1.4 KiB
Nix
72 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
buildPythonPackage,
|
|
pythonOlder,
|
|
fetchFromGitHub,
|
|
substituteAll,
|
|
ffmpeg,
|
|
libopus,
|
|
aiohttp,
|
|
aiodns,
|
|
brotli,
|
|
faust-cchardet,
|
|
orjson,
|
|
pynacl,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "nextcord";
|
|
version = "2.6.1";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nextcord";
|
|
repo = "nextcord";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-bv4I+Ol/N4kbp/Ch7utaUpo0GmF+Mpx4zWmHL7uIveM=";
|
|
};
|
|
|
|
patches = [
|
|
(substituteAll {
|
|
src = ./paths.patch;
|
|
ffmpeg = "${ffmpeg}/bin/ffmpeg";
|
|
libopus = "${libopus}/lib/libopus${stdenv.hostPlatform.extensions.sharedLibrary}";
|
|
})
|
|
];
|
|
|
|
build-system = [
|
|
setuptools
|
|
];
|
|
|
|
dependencies = [
|
|
aiodns
|
|
aiohttp
|
|
brotli
|
|
faust-cchardet
|
|
orjson
|
|
pynacl
|
|
setuptools # for pkg_resources, remove with next release
|
|
];
|
|
|
|
# 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 ];
|
|
};
|
|
}
|