mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-15 01:33:50 +00:00
56 lines
1.1 KiB
Nix
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.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 ];
|
|
};
|
|
})
|