python310Packages.python-otbr-api: init at 1.0.5

Co-Authored-By: Martin Weinelt <hexa@darmstadt.ccc.de>
This commit is contained in:
Fabian Affolter 2023-02-24 00:50:29 +01:00 committed by Martin Weinelt
parent bf6996773f
commit dab946e350
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759
2 changed files with 53 additions and 0 deletions

View File

@ -0,0 +1,51 @@
{ lib
, aiohttp
, buildPythonPackage
, cryptography
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, setuptools
, voluptuous
}:
buildPythonPackage rec {
pname = "python-otbr-api";
version = "1.0.5";
format = "pyproject";
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "home-assistant-libs";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-yI7TzVJGSWdi+NKZ0CCOi3BC4WIqFuS7YZgihfWDBSY=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
aiohttp
cryptography
voluptuous
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"python_otbr_api"
];
meta = with lib; {
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 = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View File

@ -7393,6 +7393,8 @@ self: super: with self; {
python-memcached = callPackage ../development/python-modules/python-memcached { };
python-otbr-api = callPackage ../development/python-modules/python-otbr-api { };
python-openems = callPackage ../development/python-modules/python-openems { };
python-openzwave-mqtt = callPackage ../development/python-modules/python-openzwave-mqtt { };