52 lines
1,011 B
Nix
52 lines
1,011 B
Nix
|
{ 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 ];
|
||
|
};
|
||
|
}
|