1{
2 buildPythonPackage,
3 fetchFromGitHub,
4 httpx,
5 lib,
6 nix-update-script,
7 poetry-core,
8 pytestCheckHook,
9 requests,
10}:
11
12buildPythonPackage rec {
13 pname = "discord-webhook";
14 version = "1.4.1";
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "lovvskillz";
19 repo = "python-discord-webhook";
20 tag = "${version}";
21 hash = "sha256-7nVvtXo1XjQExZSCF9VaYSCeEByJY2jn5KbVGTi33f0=";
22 };
23
24 build-system = [ poetry-core ];
25
26 dependencies = [
27 requests
28 httpx # Optional, required for async support.
29 ];
30
31 pythonImportsCheck = [
32 "discord_webhook"
33 ];
34
35 nativeCheckInputs = [ pytestCheckHook ];
36
37 passthru.updateScript = nix-update-script { };
38
39 meta = {
40 description = "Execute discord webhooks";
41 homepage = "https://github.com/lovvskillz/python-discord-webhook";
42 changelog = "https://github.com/lovvskillz/python-discord-webhook/blob/${version}/CHANGES.md";
43 license = lib.licenses.mit;
44 maintainers = with lib.maintainers; [ polyfloyd ];
45 };
46}