2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
aiohttp,
|
2024-09-19 14:19:46 +00:00
|
|
|
aioresponses,
|
2024-06-05 15:53:02 +00:00
|
|
|
buildPythonPackage,
|
2024-09-19 14:19:46 +00:00
|
|
|
cryptography,
|
2024-06-05 15:53:02 +00:00
|
|
|
fetchFromGitHub,
|
|
|
|
pytest-asyncio,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
|
|
|
xmltodict,
|
2023-10-09 19:29:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aioruckus";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "0.41";
|
|
|
|
pyproject = true;
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.10";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ms264556";
|
|
|
|
repo = "aioruckus";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-acu0EWP/k0qyylPtM8IBxhJhhQhXpbG2NheYpD8RTG8=";
|
2023-10-09 19:29:22 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
build-system = [ setuptools ];
|
2023-10-09 19:29:22 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
dependencies = [
|
2023-10-09 19:29:22 +00:00
|
|
|
aiohttp
|
2024-09-19 14:19:46 +00:00
|
|
|
cryptography
|
2023-10-09 19:29:22 +00:00
|
|
|
xmltodict
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
2024-09-19 14:19:46 +00:00
|
|
|
aioresponses
|
2023-10-09 19:29:22 +00:00
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
pythonImportsCheck = [ "aioruckus" ];
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
disabledTests = [
|
2024-09-19 14:19:46 +00:00
|
|
|
# Those tests require a local ruckus device
|
2023-10-09 19:29:22 +00:00
|
|
|
"test_ap_info"
|
|
|
|
"test_authentication_error"
|
|
|
|
"test_connect_success"
|
|
|
|
"test_current_active_clients"
|
|
|
|
"test_mesh_info"
|
|
|
|
"test_system_info"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python client for Ruckus Unleashed and Ruckus ZoneDirector";
|
|
|
|
homepage = "https://github.com/ms264556/aioruckus";
|
|
|
|
license = licenses.bsd0;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|