blob: 1b501356520f344b84e4f8458b7ba4797e35be94 (
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
aiohttp,
hatchling,
pytz,
pytestCheckHook,
pytest-asyncio,
}:
buildPythonPackage rec {
pname = "tessie-api";
version = "0.1.2";
pyproject = true;
src = fetchFromGitHub {
owner = "andrewgierens";
repo = "tessie_python_api";
tag = version;
hash = "sha256-uY52SSG2u4lcX9X7Ql/pn31uOwpqIy3kkuLMvsFBA3s=";
};
build-system = [ hatchling ];
dependencies = [
aiohttp
pytz
];
nativeCheckInputs = [
pytestCheckHook
pytest-asyncio
];
pythonImportsCheck = [ "tessie_api" ];
# Tests require API credentials
doCheck = false;
meta = {
description = "Python wrapper for the Tessie API";
homepage = "https://github.com/andrewgierens/tessie_python_api";
changelog = "https://github.com/andrewgierens/tessie_python_api/releases/tag/${version}";
license = lib.licenses.gpl3Plus;
maintainers = [ lib.maintainers.jamiemagee ];
};
}
|