nixpkgs/pkgs/development/python-modules/reolink-aio/default.nix
2026-07-01 06:50:10 +00:00

47 lines
989 B
Nix

{
lib,
aiohttp,
aiortsp,
buildPythonPackage,
fetchFromGitHub,
orjson,
pycryptodomex,
setuptools,
typing-extensions,
}:
buildPythonPackage (finalAttrs: {
pname = "reolink-aio";
version = "0.21.3";
pyproject = true;
src = fetchFromGitHub {
owner = "starkillerOG";
repo = "reolink_aio";
tag = finalAttrs.version;
hash = "sha256-XL6Z+1dr35XgMczUcxp4v3ejBcdgWkhUOISFA4lpjU4=";
};
build-system = [ setuptools ];
dependencies = [
aiohttp
aiortsp
orjson
pycryptodomex
typing-extensions
];
pythonImportsCheck = [ "reolink_aio" ];
# All tests require a network device
doCheck = false;
meta = {
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/${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
})