Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.3 kB · 65 lines
Nix
at litex
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566{ lib, stdenv, buildPythonPackage, pythonOlder, fetchFromGitHub, substituteAll, ffmpeg, libopus, aiohttp, aiodns, brotli, faust-cchardet, orjson, pynacl}:
buildPythonPackage rec { pname = "nextcord"; version = "2.4.2";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub { owner = "nextcord"; repo = "nextcord"; rev = "refs/tags/v${version}"; hash = "sha256-n73F5y922rsu0YFjAwQlUVpSa6Scs/xyfZHREmqKiHU="; };
patches = [ (substituteAll { src = ./paths.patch; ffmpeg = "${ffmpeg}/bin/ffmpeg"; libopus = "${libopus}/lib/libopus${stdenv.hostPlatform.extensions.sharedLibrary}"; }) ];
propagatedBuildInputs = [ aiodns aiohttp brotli faust-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 ]; };}