Files
2026-10-29 11:31:40 +00:00

61 lines
1.2 KiB
Nix

{
lib,
aiohttp,
awesomeversion,
buildPythonPackage,
fetchFromGitHub,
pytest-asyncio,
pytest-cov-stub,
pytest-timeout,
pytestCheckHook,
python-dateutil,
pythonOlder,
setuptools,
}:
buildPythonPackage (finalAttrs: {
pname = "aiopnsense";
version = "1.3.2";
pyproject = true;
disabled = pythonOlder "3.14";
src = fetchFromGitHub {
owner = "Snuffy2";
repo = "aiopnsense";
tag = "v${finalAttrs.version}";
hash = "sha256-iJ5nTOR7hD8OW6C3rnNrxGaBo2s2z5+WdmvfmY8rUxU=";
};
build-system = [ setuptools ];
dependencies = [
aiohttp
awesomeversion
python-dateutil
];
nativeCheckInputs = [
aiohttp
pytest-asyncio
pytest-cov-stub
pytest-timeout
pytestCheckHook
];
pythonImportsCheck = [ "aiopnsense" ];
disabledTestPaths = [
# Tests dependabot
"tests/test_dependabot_auto_merge.py"
];
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 ];
};
})