Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
47 lines
1002 B
Nix
47 lines
1002 B
Nix
{
|
|
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 ];
|
|
};
|
|
}
|