diff --git a/pkgs/development/python-modules/aiospinel/default.nix b/pkgs/development/python-modules/aiospinel/default.nix new file mode 100644 index 000000000000..1e5156451762 --- /dev/null +++ b/pkgs/development/python-modules/aiospinel/default.nix @@ -0,0 +1,55 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + setuptools-scm, + typing-extensions, + pytestCheckHook, + pytest-asyncio, + pytest-cov-stub, + pytest-timeout, +}: + +buildPythonPackage (finalAttrs: { + pname = "aiospinel"; + version = "1.2.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "home-assistant-libs"; + repo = "aiospinel"; + tag = "v${finalAttrs.version}"; + hash = "sha256-AMIrm9AGFjRSDwJtDXcOH9HIBFiqszjjNma+egRa5Tw="; + }; + + build-system = [ + setuptools + setuptools-scm + ]; + + dependencies = [ + typing-extensions + ]; + + nativeCheckInputs = [ + pytestCheckHook + pytest-asyncio + pytest-cov-stub + pytest-timeout + ]; + + pythonImportsCheck = [ + "aiospinel" + ]; + + __structuredAttrs = true; + + meta = { + description = "Asyncio implementation of the Spinel protocol used to communicate with OpenThread RCPs over a serial connection"; + homepage = "https://github.com/home-assistant-libs/aiospinel"; + changelog = "https://github.com/home-assistant-libs/aiospinel/releases/tag/${finalAttrs.src.tag}"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ hexa ]; + }; +}) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index f792d912e4dc..0e296171383b 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -560,6 +560,8 @@ self: super: with self; { aiosonos = callPackage ../development/python-modules/aiosonos { }; + aiospinel = callPackage ../development/python-modules/aiospinel { }; + aiosql = callPackage ../development/python-modules/aiosql { }; aiosqlite = callPackage ../development/python-modules/aiosqlite { };