Files
nixpkgs/pkgs/development/python-modules/python-otbr-api/default.nix
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

55 lines
1.1 KiB
Nix

{
lib,
aiohttp,
bitstruct,
buildPythonPackage,
cryptography,
fetchFromGitHub,
pytest-asyncio,
pytestCheckHook,
pythonOlder,
setuptools,
typing-extensions,
voluptuous,
}:
buildPythonPackage rec {
pname = "python-otbr-api";
version = "2.7.0";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "home-assistant-libs";
repo = "python-otbr-api";
tag = version;
hash = "sha256-irQ4QvpGIAYYKq0UqLuo7Nrnde905+GJFd4HkxsCDmQ=";
};
build-system = [ setuptools ];
dependencies = [
aiohttp
bitstruct
cryptography
typing-extensions
voluptuous
];
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [ "python_otbr_api" ];
meta = {
description = "Library for the Open Thread Border Router";
homepage = "https://github.com/home-assistant-libs/python-otbr-api";
changelog = "https://github.com/home-assistant-libs/python-otbr-api/releases/tag/${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}