python3Packages.discord-webhook: init at 1.4.1

This commit is contained in:
polyfloyd
2025-07-27 12:18:06 +02:00
parent 04d690e5af
commit 0833dfa4ca
2 changed files with 48 additions and 0 deletions
@@ -0,0 +1,46 @@
{
buildPythonPackage,
fetchFromGitHub,
httpx,
lib,
nix-update-script,
poetry-core,
pytestCheckHook,
requests,
}:
buildPythonPackage rec {
pname = "discord-webhook";
version = "1.4.1";
pyproject = true;
src = fetchFromGitHub {
owner = "lovvskillz";
repo = "python-discord-webhook";
tag = "${version}";
hash = "sha256-7nVvtXo1XjQExZSCF9VaYSCeEByJY2jn5KbVGTi33f0=";
};
build-system = [ poetry-core ];
dependencies = [
requests
httpx # Optional, required for async support.
];
pythonImportsCheck = [
"discord_webhook"
];
nativeCheckInputs = [ pytestCheckHook ];
passthru.updateScript = nix-update-script { };
meta = {
description = "Execute discord webhooks";
homepage = "https://github.com/lovvskillz/python-discord-webhook";
changelog = "https://github.com/lovvskillz/python-discord-webhook/blob/${version}/CHANGES.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ polyfloyd ];
};
}
+2
View File
@@ -3625,6 +3625,8 @@ self: super: with self; {
discogs-client = callPackage ../development/python-modules/discogs-client { };
discord-webhook = callPackage ../development/python-modules/discord-webhook { };
discordpy = callPackage ../development/python-modules/discordpy { };
discovery30303 = callPackage ../development/python-modules/discovery30303 { };