blob: 626872794e035fb6cac5eb7a77b7e3e68d77b223 (
plain) (
blame)
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
56
57
58
59
60
61
|
{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pytestCheckHook
, python-dateutil
, python-socketio
, pythonOlder
, pythonRelaxDepsHook
, requests
, requests-mock
}:
buildPythonPackage rec {
pname = "tagoio-sdk";
version = "4.3.0";
format = "pyproject";
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "tago-io";
repo = "sdk-python";
rev = "refs/tags/v${version}";
hash = "sha256-37/fg2vbwYPhYPvSJ2YxWAPrfspqTE3thIL/VR1+AkI=";
};
pythonRelaxDeps = [
"requests"
];
nativeBuildInputs = [
poetry-core
pythonRelaxDepsHook
];
propagatedBuildInputs = [
aiohttp
python-dateutil
python-socketio
requests
];
nativeCheckInputs = [
requests-mock
pytestCheckHook
];
pythonImportsCheck = [
"tagoio_sdk"
];
meta = with lib; {
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/v${version}";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}
|