blob: 19541f5a3c3d69a61ef2dc6edb86b9edd031a418 (
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,
awesomeversion,
buildPythonPackage,
fetchFromGitHub,
pytest-asyncio,
pytest-cov-stub,
pytest-timeout,
pytestCheckHook,
python-dateutil,
pythonOlder,
setuptools,
}:
buildPythonPackage (finalAttrs: {
pname = "aiopnsense";
version = "1.0.8";
pyproject = true;
disabled = pythonOlder "3.14";
src = fetchFromGitHub {
owner = "Snuffy2";
repo = "aiopnsense";
tag = "v${finalAttrs.version}";
hash = "sha256-pJVYbf81/vZRi5elhNhiscXrEqDRLiIrik8N9GcR6yQ=";
};
build-system = [ setuptools ];
dependencies = [
aiohttp
awesomeversion
python-dateutil
];
nativeCheckInputs = [
aiohttp
pytest-asyncio
pytest-cov-stub
pytest-timeout
pytestCheckHook
];
pythonImportsCheck = [ "aiopnsense" ];
meta = {
description = "Async Python client library for OPNsense";
homepage = "https://github.com/Snuffy2/aiopnsense";
changelog = "https://github.com/Snuffy2/aiopnsense/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.asl20;
maintainers = [ lib.maintainers.jamiemagee ];
};
})
|