diff options
Diffstat (limited to 'pkgs/development/python-modules/airos/default.nix')
| -rw-r--r-- | pkgs/development/python-modules/airos/default.nix | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/airos/default.nix b/pkgs/development/python-modules/airos/default.nix new file mode 100644 index 000000000000..42fcee67126c --- /dev/null +++ b/pkgs/development/python-modules/airos/default.nix @@ -0,0 +1,52 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + setuptools, + aiohttp, + mashumaro, + aiofiles, + aioresponses, + pytest-asyncio, + pytestCheckHook, +}: + +buildPythonPackage rec { + pname = "airos"; + version = "0.2.4"; + pyproject = true; + + disabled = pythonOlder "3.13"; + + src = fetchFromGitHub { + owner = "CoMPaTech"; + repo = "python-airos"; + tag = "v${version}"; + hash = "sha256-zY0XPucCXiJDo9C4GiDqs/lxQDTphs/mBXBqSYPvkoI="; + }; + + build-system = [ setuptools ]; + + dependencies = [ + aiohttp + mashumaro + ]; + + nativeCheckInputs = [ + aiofiles + aioresponses + pytest-asyncio + pytestCheckHook + ]; + + pythonImportsCheck = [ "airos" ]; + + meta = { + description = "Ubiquity airOS module(s) for Python 3"; + homepage = "https://github.com/CoMPaTech/python-airos"; + changelog = "https://github.com/CoMPaTech/python-airos/releases/tag/v${version}"; + license = lib.licenses.mit; + maintainers = [ lib.maintainers.jamiemagee ]; + }; +} |
