blob: d110c7971dbed87e0abf9b50391b7d2411127b39 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
{
lib,
aiohttp,
buildPythonPackage,
fetchFromGitHub,
hatchling,
pytestCheckHook,
python-dateutil,
python-socketio,
requests,
requests-mock,
requests-toolbelt,
sseclient-py,
}:
buildPythonPackage (finalAttrs: {
pname = "tagoio-sdk";
version = "5.1.1";
pyproject = true;
src = fetchFromGitHub {
owner = "tago-io";
repo = "sdk-python";
tag = "v${finalAttrs.version}";
hash = "sha256-1sPwwRgMGcT8ZCKkc6nt1XAjz4frw6guVbDN+Ydaa94=";
};
pythonRelaxDeps = [ "requests" ];
build-system = [ hatchling ];
dependencies = [
aiohttp
python-dateutil
python-socketio
requests
requests-toolbelt
sseclient-py
];
nativeCheckInputs = [
requests-mock
pytestCheckHook
];
pythonImportsCheck = [ "tagoio_sdk" ];
meta = {
description = "Module for interacting with Tago.io";
homepage = "https://github.com/tago-io/sdk-python";
changelog = "https://github.com/tago-io/sdk-python/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
};
})
|