2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
aiohttp,
|
|
|
|
aiortsp,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
orjson,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
|
|
|
typing-extensions,
|
2023-01-11 07:51:40 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "reolink-aio";
|
2024-10-04 16:56:33 +00:00
|
|
|
version = "0.9.11";
|
2024-04-21 15:54:59 +00:00
|
|
|
pyproject = true;
|
2023-01-11 07:51:40 +00:00
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
disabled = pythonOlder "3.10";
|
2023-01-11 07:51:40 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "starkillerOG";
|
|
|
|
repo = "reolink_aio";
|
|
|
|
rev = "refs/tags/${version}";
|
2024-10-04 16:56:33 +00:00
|
|
|
hash = "sha256-xIN6ioX02YgzY3sh3l7rFT6UQCMnzlrX/CJj483G6ig=";
|
2023-01-11 07:51:40 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
build-system = [ setuptools ];
|
2024-04-21 15:54:59 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
dependencies = [
|
2023-01-11 07:51:40 +00:00
|
|
|
aiohttp
|
2024-01-13 08:15:51 +00:00
|
|
|
aiortsp
|
2023-08-04 22:07:22 +00:00
|
|
|
orjson
|
2023-10-09 19:29:22 +00:00
|
|
|
typing-extensions
|
2023-01-11 07:51:40 +00:00
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "reolink_aio" ];
|
2023-01-11 07:51:40 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
# All tests require a network device
|
|
|
|
doCheck = false;
|
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Module to interact with the Reolink IP camera API";
|
|
|
|
homepage = "https://github.com/starkillerOG/reolink_aio";
|
|
|
|
changelog = "https://github.com/starkillerOG/reolink_aio/releases/tag/${version}";
|
2024-09-26 11:04:55 +00:00
|
|
|
license = licenses.mit;
|
2023-01-11 07:51:40 +00:00
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|