Files
2026-07-20 01:54:07 +00:00

56 lines
1.1 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.1.3";
pyproject = true;
disabled = pythonOlder "3.14";
src = fetchFromGitHub {
owner = "Snuffy2";
repo = "aiopnsense";
tag = "v${finalAttrs.version}";
hash = "sha256-XzRc7g+t8ylOVyjwnNbKFulPAj7HrVZVMvi+ea717CM=";
};
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 ];
};
})